all: Implement suture v4-api (#6947)
This commit is contained in:
@@ -93,7 +93,7 @@ func (c *dynamicClient) serve(ctx context.Context) error {
|
||||
c.client = client
|
||||
c.mut.Unlock()
|
||||
|
||||
c.client.Serve()
|
||||
c.client.Serve(ctx)
|
||||
|
||||
c.mut.Lock()
|
||||
c.client = nil
|
||||
@@ -104,15 +104,6 @@ func (c *dynamicClient) serve(ctx context.Context) error {
|
||||
return errors.New("could not find a connectable relay")
|
||||
}
|
||||
|
||||
func (c *dynamicClient) Stop() {
|
||||
c.mut.RLock()
|
||||
if c.client != nil {
|
||||
c.client.Stop()
|
||||
}
|
||||
c.mut.RUnlock()
|
||||
c.commonClient.Stop()
|
||||
}
|
||||
|
||||
func (c *dynamicClient) Error() error {
|
||||
c.mut.RLock()
|
||||
defer c.mut.RUnlock()
|
||||
|
||||
Reference in New Issue
Block a user