MCPcopy Index your code
hub / github.com/CodisLabs/codis / ResolveTCPAddr

Function ResolveTCPAddr

pkg/utils/resolver.go:37–40  ·  view source on GitHub ↗
(addr string)

Source from the content-addressed store, hash-verified

35}
36
37func ResolveTCPAddr(addr string) *net.TCPAddr {
38 tcpAddr, _ := net.ResolveTCPAddr("tcp", addr)
39 return tcpAddr
40}
41
42func ResolveTCPAddrTimeout(addr string, timeout time.Duration) *net.TCPAddr {
43 cntx, cancel := context.WithTimeout(context.Background(), timeout)

Callers 2

TestResolveTCPAddrFunction · 0.85
ResolveTCPAddrTimeoutFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestResolveTCPAddrFunction · 0.68