Formatting
continuous-integration/drone/pr Build is pending
Details
continuous-integration/drone/pr Build is pending
Details
This commit is contained in:
parent
b84de2aa61
commit
77e4e981e8
|
@ -344,7 +344,7 @@ func (e *engine) Shutdown() {
|
||||||
log.Infof("shutting down ephemeral service")
|
log.Infof("shutting down ephemeral service")
|
||||||
// work around: service.shutdown() can block for a long time if it is Open()ing a new connection, putting it in a
|
// work around: service.shutdown() can block for a long time if it is Open()ing a new connection, putting it in a
|
||||||
// goroutine means we can perform this operation and let the per service shutdown in their own time or until the app exits
|
// goroutine means we can perform this operation and let the per service shutdown in their own time or until the app exits
|
||||||
conn := connection; // don't capture loop variable
|
conn := connection // don't capture loop variable
|
||||||
go func() {
|
go func() {
|
||||||
conn.connectingLock.Lock()
|
conn.connectingLock.Lock()
|
||||||
conn.service.Shutdown()
|
conn.service.Shutdown()
|
||||||
|
|
Loading…
Reference in New Issue