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

Function WriteInt

IceFireDB-Redis-Proxy/pkg/router/writer.go:135–147  ·  view source on GitHub ↗
(local *RESPHandle.WriterHandle, reply int64)

Source from the content-addressed store, hash-verified

133}
134
135func WriteInt(local *RESPHandle.WriterHandle, reply int64) error {
136 err := local.WriteInt(reply)
137 if err != nil {
138 logrus.Error("Client write error:", err)
139 return ErrLocalWriter
140 }
141 err = local.Flush()
142 if err != nil {
143 logrus.Error("Client flush error:", err)
144 return ErrLocalFlush
145 }
146 return nil
147}
148
149func WriteError(local *RESPHandle.WriterHandle, err error) error {
150 local.WriteError(err.Error())

Callers 4

cmdCMDEXECMethod · 0.92
cmdDELMethod · 0.92
cmdEXISTSMethod · 0.92
cmdCMDEXECMethod · 0.92

Calls 1

ErrorMethod · 0.45

Tested by

no test coverage detected