MCPcopy Create free account
hub / github.com/IceFireDB/IceFireDB / WriteBulk

Function WriteBulk

IceFireDB-PubSub/pkg/router/writer.go:44–56  ·  view source on GitHub ↗
(local *RESPHandle.WriterHandle, reply []byte)

Source from the content-addressed store, hash-verified

42}
43
44func WriteBulk(local *RESPHandle.WriterHandle, reply []byte) error {
45 err := local.WriteBulk(reply)
46 if err != nil {
47 logrus.Error("client write error:", err)
48 return ErrLocalWriter
49 }
50 err = local.Flush()
51 if err != nil {
52 logrus.Error("Client flush error:", err)
53 return ErrLocalFlush
54 }
55 return nil
56}
57
58func WriteObjects(local *RESPHandle.WriterHandle, reply ...interface{}) (err error) {
59 if len(reply) > 1 {

Callers 2

cmdCMDEXECMethod · 0.92
cmdCMDEXECMethod · 0.92

Calls 1

ErrorMethod · 0.45

Tested by

no test coverage detected