MCPcopy
hub / github.com/redis/go-redis / Write

Method Write

main_test.go:380–388  ·  view source on GitHub ↗
([]byte)

Source from the content-addressed store, hash-verified

378}
379
380func (cn *badConn) Write([]byte) (int, error) {
381 if cn.writeDelay != 0 {
382 time.Sleep(cn.writeDelay)
383 }
384 if cn.writeErr != nil {
385 return 0, cn.writeErr
386 }
387 return 0, badConnError("bad connection")
388}
389
390//------------------------------------------------------------------------------
391

Callers 8

encodeFloat32VectorFunction · 0.45
encodeFloat16VectorFunction · 0.45
handleMethod · 0.45
handleMethod · 0.45
handleMethod · 0.45
handleMethod · 0.45

Calls 1

badConnErrorTypeAlias · 0.85

Tested by

no test coverage detected