Skip to content

Commit

Permalink
Merge pull request #181 from matrix-org/dmr/setupConnection-debugging
Browse files Browse the repository at this point in the history
Sanity-check that the `pid` is correct
  • Loading branch information
David Robertson committed Jun 21, 2023
2 parents 60754e6 + fa7cc34 commit 57c25ab
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sync3/handler/handler.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package handler

import "C"
import (
"context"
"database/sql"
Expand Down Expand Up @@ -361,8 +360,8 @@ func (h *SyncLiveHandler) setupConnection(req *http.Request, syncReq *sync3.Requ
return nil, internal.ExpiredSessionError()
}

log.Trace().Msg("checking poller exists and is running")
pid := sync2.PollerID{UserID: token.UserID, DeviceID: token.DeviceID}
log.Trace().Any("pid", pid).Msg("checking poller exists and is running")
h.EnsurePoller.EnsurePolling(taskCtx, pid, token.AccessTokenHash)
log.Trace().Msg("poller exists and is running")
// this may take a while so if the client has given up (e.g timed out) by this point, just stop.
Expand Down

0 comments on commit 57c25ab

Please sign in to comment.