Skip to content

Commit

Permalink
chore: set user-agent to s2-cli (#23) (#24)
Browse files Browse the repository at this point in the history
closes #23
  • Loading branch information
infiniteregrets authored Nov 7, 2024
1 parent bdd94c1 commit daab6e8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ fn parse_records_output_source(s: &str) -> Result<RecordsIO, std::io::Error> {

fn client_config(auth_token: String) -> Result<ClientConfig, InvalidHostError> {
Ok(ClientConfig::new(auth_token.to_string())
.with_user_agent("s2-cli")
.with_host_endpoint(HostEndpoints::from_env()?)
.with_connection_timeout(std::time::Duration::from_secs(5)))
}
Expand Down

0 comments on commit daab6e8

Please sign in to comment.