Skip to content

Commit

Permalink
minor: rename RunSync -> RunSyncing()
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-abramov committed Dec 2, 2022
1 parent 2829682 commit 78e9e99
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func main() {
routerChannel := newRouter(matrixClient, config.Conference)

// Start matrix client sync. This function will block until the sync fails.
matrixClient.RunSync(func(e *event.Event) {
matrixClient.RunSyncing(func(e *event.Event) {
routerChannel <- e
})
}
2 changes: 1 addition & 1 deletion pkg/signaling/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func NewMatrixClient(config Config) *MatrixClient {

// Starts the Matrix client and connects to the homeserver,
// Returns only when the sync with Matrix fails.
func (m *MatrixClient) RunSync(callback func(*event.Event)) {
func (m *MatrixClient) RunSyncing(callback func(*event.Event)) {
syncer, ok := m.client.Syncer.(*mautrix.DefaultSyncer)
if !ok {
logrus.Panic("Syncer is not DefaultSyncer")
Expand Down

0 comments on commit 78e9e99

Please sign in to comment.