MCPcopy
hub / github.com/grpc/grpc-go / Delete

Method Delete

resolver/map.go:278–281  ·  view source on GitHub ↗

Delete removes the specified endpoint from the map.

(e Endpoint)

Source from the content-addressed store, hash-verified

276
277// Delete removes the specified endpoint from the map.
278func (em *EndpointMap[T]) Delete(e Endpoint) {
279 en := encodeEndpoint(e)
280 delete(em.endpoints, en)
281}

Callers 3

TestAddressMap_DeleteMethod · 0.45
BenchmarkEndpointMapFunction · 0.45

Calls 1

encodeEndpointFunction · 0.85

Tested by 3

TestAddressMap_DeleteMethod · 0.36
BenchmarkEndpointMapFunction · 0.36