MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / CloseAll

Function CloseAll

cmd/ttn-lw-cli/internal/api/grpc.go:183–193  ·  view source on GitHub ↗

CloseAll closes all remaining gRPC connections.

()

Source from the content-addressed store, hash-verified

181
182// CloseAll closes all remaining gRPC connections.
183func CloseAll() {
184 connMu.Lock()
185 defer connMu.Unlock()
186 for target, conn := range conns {
187 delete(conns, target)
188 if conn == nil {
189 continue
190 }
191 conn.Close()
192 }
193}
194
195// Retry defines retry logic for gRPC calls.
196type Retry[T proto.Message] struct {

Callers 1

root.goFile · 0.92

Calls 1

CloseMethod · 0.65

Tested by

no test coverage detected