Skip to content

Commit

Permalink
Remove external type exposed
Browse files Browse the repository at this point in the history
  • Loading branch information
rcoh committed Mar 14, 2023
1 parent eab00b4 commit 19a739b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions rust-runtime/aws-smithy-client/src/test_connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ pub mod wire_mock {
/// An event recorded by [`WireLevelTestConnection`]
#[derive(Debug, Clone)]
pub enum RecordedEvent {
DnsLookup(Name),
DnsLookup(String),
NewConnection,
Response(ReplayedEvent),
}
Expand Down Expand Up @@ -603,7 +603,9 @@ pub mod wire_mock {
let log = self.log.clone();
Box::pin(async move {
println!("looking up {:?}, replying with {:?}", req, sock_addr);
log.lock().unwrap().push(RecordedEvent::DnsLookup(req));
log.lock()
.unwrap()
.push(RecordedEvent::DnsLookup(req.to_string()));
Ok(iter::once(sock_addr))
})
}
Expand Down

0 comments on commit 19a739b

Please sign in to comment.