-
Notifications
You must be signed in to change notification settings - Fork 175
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rust: Add
Svix::with_token
to allow changing api token
Constructing a new `Svix` client performs TLS initialization, which can be expensive (openssl needs to read certs from disk). The new `with_token` method allows changing the api token while re-using the Hyper client, which avoids performing disk io.
- Loading branch information
1 parent
40184eb
commit cabef6e
Showing
1 changed file
with
31 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters