Skip to content

where is the old aws_smithy_client::{erase::DynConnector, test_connection::TestConnection}; #1038

Answered by rcoh
ymwjbxxq asked this question in Q&A
Discussion options

You must be logged in to vote

Ah good question. These were renamed to be a little bit more specific to their functionality: https://docs.rs/aws-smithy-runtime/latest/aws_smithy_runtime/client/http/test_util/struct.StaticReplayClient.html

Dyn connector shouldn't be required anymore. You can pass StaticReplayClient directly as the argument to http_client. Here's an example from our own tests

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ymwjbxxq
Comment options

@rcoh
Comment options

rcoh Jan 14, 2024
Collaborator

@rcoh
Comment options

rcoh Jan 14, 2024
Collaborator

Answer selected by ymwjbxxq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants