diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2024-07-15 10:16:11 +0200 |
|---|---|---|
| committer | Jeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com> | 2024-07-17 14:00:03 +0000 |
| commit | 2fc994a73a1a50469c09544a17a2cbd9a6e8c67b (patch) | |
| tree | 3184175e36383655f9a4a63ec5c1be03c11d1626 /client/client.go | |
| parent | 6f2b23fcd476848368a027cc5ad15a300bc25fa8 (diff) | |
Client: Move DiscoveryStartup to correct file and check client_id
Diffstat (limited to 'client/client.go')
| -rw-r--r-- | client/client.go | 18 |
1 files changed, 0 insertions, 18 deletions
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 |
