Skip to content

Commit

Permalink
fix(api): Use the new sliding sync version API from the Rust SDK.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hywan committed Aug 27, 2024
1 parent 0c7756b commit 629e383
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/api/rust/rust.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@ type RustClient struct {
func NewRustClient(t ct.TestLike, opts api.ClientCreationOpts) (api.Client, error) {
t.Logf("NewRustClient[%s][%s] creating...", opts.UserID, opts.DeviceID)
matrix_sdk_ffi.LogEvent("rust.go", &zero, matrix_sdk_ffi.LogLevelInfo, t.Name(), fmt.Sprintf("NewRustClient[%s][%s] creating...", opts.UserID, opts.DeviceID))
ab := matrix_sdk_ffi.NewClientBuilder().HomeserverUrl(opts.BaseURL).SlidingSyncProxy(&opts.SlidingSyncURL).AutoEnableCrossSigning(true)
ab := matrix_sdk_ffi.NewClientBuilder()
.HomeserverUrl(opts.BaseURL)

Check failure on line 68 in internal/api/rust/rust.go

View workflow job for this annotation

GitHub Actions / Tests

syntax error: unexpected ., expected }

Check failure on line 68 in internal/api/rust/rust.go

View workflow job for this annotation

GitHub Actions / Tests (Rust only, latest) / tests

syntax error: unexpected ., expected }
.SlidingSyncVersionBuilder(&matrix_sdk_ffi.SlidingSyncVersionBuilderProxy{ Url: &opts.SlidingSyncURL })
.AutoEnableCrossSigning(true)
var clientSessionDelegate matrix_sdk_ffi.ClientSessionDelegate
if opts.EnableCrossProcessRefreshLockProcessName != "" {

Check failure on line 72 in internal/api/rust/rust.go

View workflow job for this annotation

GitHub Actions / Tests

syntax error: non-declaration statement outside function body

Check failure on line 72 in internal/api/rust/rust.go

View workflow job for this annotation

GitHub Actions / Tests (Rust only, latest) / tests

syntax error: non-declaration statement outside function body
t.Logf("enabling cross process refresh lock with proc name=%s", opts.EnableCrossProcessRefreshLockProcessName)
Expand Down

0 comments on commit 629e383

Please sign in to comment.