From 2fc994a73a1a50469c09544a17a2cbd9a6e8c67b Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Mon, 15 Jul 2024 10:16:11 +0200 Subject: Client: Move DiscoveryStartup to correct file and check client_id --- client/client.go | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'client/client.go') diff --git a/client/client.go b/client/client.go index 393a6ed..9a26485 100644 --- a/client/client.go +++ b/client/client.go @@ -57,24 +57,6 @@ type Client struct { discoMan DiscoManager } -func (c *Client) DiscoveryStartup(cb func()) { - fcb := func() { - if cb == nil { - return - } - - c.mu.Lock() - defer c.mu.Unlock() - - if c.FSM.Current != StateMain { - return - } - - cb() - } - c.discoMan.Startup(context.Background(), fcb) -} - // GettingConfig is defined here to satisfy the server.Callbacks interface // It is called when internally we are getting a config // We go to the GettingConfig state -- cgit v1.2.3