Skip to content

Commit

Permalink
Adopt the new ClientBuilder::session_paths method. (#127)
Browse files Browse the repository at this point in the history
* Adopt the new ClientBuilder::session_paths method.

* The cache path is no longer optional.
  • Loading branch information
pixlwave authored Aug 23, 2024
1 parent 994307e commit 0c7756b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/api/rust/rust.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ func NewRustClient(t ct.TestLike, opts api.ClientCreationOpts) (api.Client, erro
}
// @alice:hs1, FOOBAR => alice_hs1_FOOBAR
username := strings.Replace(opts.UserID[1:], ":", "_", -1) + "_" + opts.DeviceID
ab = ab.SessionPath("rust_storage/" + username).Username(username)
sessionPath := "rust_storage/" + username
ab = ab.SessionPaths(sessionPath, sessionPath).Username(username)
client, err := ab.Build()
if err != nil {
return nil, fmt.Errorf("ClientBuilder.Build failed: %s", err)
Expand Down

0 comments on commit 0c7756b

Please sign in to comment.