Browse Source
🐛 fix(client): reconnect if initial attempt failed for any reason
pull/7394/head
Mariano Ntrougkas
1 month ago
Failed to extract signature
1 changed files with
2 additions and
0 deletions
-
weed/worker/client.go
|
|
|
@ -111,6 +111,8 @@ func (c *GrpcAdminClient) connectionProcess() { |
|
|
|
if err != nil { |
|
|
|
glog.Warningf("Initial connection failed: %v", err) |
|
|
|
c.comms.connectionEvents <- connectionEvent{connected: false, err: err} |
|
|
|
c.comms.streamErrors <- err |
|
|
|
c.comms.streamErrors <- err |
|
|
|
} else { |
|
|
|
c.comms.connectionEvents <- connectionEvent{connected: true} |
|
|
|
} |
|
|
|
|