MCPcopy
hub / github.com/grafana/dskit / Write

Method Write

kv/memberlist/tcp_transport_conn.go:51–57  ·  view source on GitHub ↗

Write implement net.Conn.

(b []byte)

Source from the content-addressed store, hash-verified

49
50// Write implement net.Conn.
51func (c *meteredConn) Write(b []byte) (n int, err error) {
52 n, err = c.Conn.Write(b)
53 if n > 0 {
54 c.addSentBytes(int64(n))
55 }
56 return n, err
57}
58
59// Close implement net.Conn.
60func (c *meteredConn) Close() error {

Callers 7

writeToMethod · 0.45
DialTimeoutMethod · 0.45
marshalStateFunction · 0.45
LocalStateMethod · 0.45
ServeHTTPMethod · 0.45
downloadKeyFunction · 0.45

Calls 1

addSentBytesMethod · 0.95

Tested by 2

marshalStateFunction · 0.36