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

Function copyAddresses

clientconn.go:894–898  ·  view source on GitHub ↗

Makes a copy of the input addresses slice. Addresses are passed during subconn creation and address update operations.

(in []resolver.Address)

Source from the content-addressed store, hash-verified

892// Makes a copy of the input addresses slice. Addresses are passed during
893// subconn creation and address update operations.
894func copyAddresses(in []resolver.Address) []resolver.Address {
895 out := make([]resolver.Address, len(in))
896 copy(out, in)
897 return out
898}
899
900// newAddrConnLocked creates an addrConn for addrs and adds it to cc.conns.
901//

Callers 2

newAddrConnLockedMethod · 0.85
updateAddrsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected