From 78e9e99eec0ebfbb2d7b5a6c4e47b4c1f2633f5d Mon Sep 17 00:00:00 2001 From: Daniel Abramov Date: Fri, 2 Dec 2022 18:25:52 +0100 Subject: [PATCH] minor: rename `RunSync` -> `RunSyncing()` --- pkg/main.go | 2 +- pkg/signaling/client.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/main.go b/pkg/main.go index 05a8f51..bed8313 100644 --- a/pkg/main.go +++ b/pkg/main.go @@ -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 }) } diff --git a/pkg/signaling/client.go b/pkg/signaling/client.go index a16313f..c00e519 100644 --- a/pkg/signaling/client.go +++ b/pkg/signaling/client.go @@ -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")