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

Method String

trace.go:89–107  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

87}
88
89func (f *firstLine) String() string {
90 f.mu.Lock()
91 defer f.mu.Unlock()
92
93 var line bytes.Buffer
94 io.WriteString(&line, "RPC: ")
95 if f.client {
96 io.WriteString(&line, "to")
97 } else {
98 io.WriteString(&line, "from")
99 }
100 fmt.Fprintf(&line, " %v deadline:", f.remoteAddr)
101 if f.deadline != 0 {
102 fmt.Fprint(&line, f.deadline)
103 } else {
104 io.WriteString(&line, "none")
105 }
106 return line.String()
107}
108
109const truncateSize = 100
110

Callers

nothing calls this directly

Calls 3

StringMethod · 0.95
LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected