Skip to content

Commit

Permalink
dependencies: update mautrix-go
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Dec 2, 2024
1 parent f70fb53 commit a885d1e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ require (
github.com/whyrusleeping/go-did v0.0.0-20230824162731-404d1707d5d6
go.mau.fi/util v0.8.2
gopkg.in/yaml.v3 v3.0.1
maunium.net/go/mautrix v0.22.1-0.20241126125002-0384e800fd3e
maunium.net/go/mautrix v0.22.1-0.20241202131110-166ba04aae02
)

require (
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -320,5 +320,5 @@ lukechampine.com/blake3 v1.2.1 h1:YuqqRuaqsGV71BV/nm9xlI0MKUv4QC54jQnBChWbGnI=
lukechampine.com/blake3 v1.2.1/go.mod h1:0OFRp7fBtAylGVCO40o87sbupkyIGgbpv1+M1k1LM6k=
maunium.net/go/mauflag v1.0.0 h1:YiaRc0tEI3toYtJMRIfjP+jklH45uDHtT80nUamyD4M=
maunium.net/go/mauflag v1.0.0/go.mod h1:nLivPOpTpHnpzEh8jEdSL9UqO9+/KBJFmNRlwKfkPeA=
maunium.net/go/mautrix v0.22.1-0.20241126125002-0384e800fd3e h1:xhz3SA/N4CWsZ6vA4r/2v06eGb4hYntj3SlpG9mpj6g=
maunium.net/go/mautrix v0.22.1-0.20241126125002-0384e800fd3e/go.mod h1:oqwf9WYC/brqucM+heYk4gX11O59nP+ljvyxVhndFIM=
maunium.net/go/mautrix v0.22.1-0.20241202131110-166ba04aae02 h1:g8L4GpOhyg5EuXtASDKyU9Cg79ZjATlUnh+giFumQgc=
maunium.net/go/mautrix v0.22.1-0.20241202131110-166ba04aae02/go.mod h1:oqwf9WYC/brqucM+heYk4gX11O59nP+ljvyxVhndFIM=
5 changes: 2 additions & 3 deletions pkg/connector/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ type BlueskyClient struct {

var _ bridgev2.NetworkAPI = (*BlueskyClient)(nil)

func (b *BlueskyClient) Connect(ctx context.Context) error {
func (b *BlueskyClient) Connect(ctx context.Context) {
b.UserLogin.BridgeState.Send(status.BridgeState{StateEvent: status.StateConnecting})
err := b.refreshToken(ctx)
if err != nil {
Expand All @@ -82,14 +82,13 @@ func (b *BlueskyClient) Connect(ctx context.Context) error {
StateEvent: status.StateUnknownError,
Error: "bsky-token-refresh-failed",
})
return nil
return
}
err = b.fetchInbox(ctx)
if err != nil {
zerolog.Ctx(ctx).Err(err).Msg("Failed to fetch inbox during startup")
}
go b.startPolling()
return nil
}

func (b *BlueskyClient) refreshToken(ctx context.Context) error {
Expand Down

0 comments on commit a885d1e

Please sign in to comment.