Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/sirupsen/logrus
/ Write
Method
Write
writer_test.go:50–54 ·
view source on GitHub ↗
(p []byte)
Source
from the content-addressed store, hash-verified
48
}
49
50
func
(b *bufferWithMu) Write(p []byte) (int, error) {
51
b.mu.Lock()
52
defer
b.mu.Unlock()
53
return
b.buf.Write(p)
54
}
55
56
func
(b *bufferWithMu) Read(p []byte) (int, error) {
57
b.mu.RLock()
Callers
4
write
Method · 0.45
TestWriterSplitNewlines
Function · 0.45
TestWriterSplitsMax64KB
Function · 0.45
Fire
Method · 0.45
Calls
2
Lock
Method · 0.80
Unlock
Method · 0.80
Tested by
no test coverage detected