(local *RESPHandle.WriterHandle, reply int64)
| 133 | } |
| 134 | |
| 135 | func 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 | |
| 149 | func WriteError(local *RESPHandle.WriterHandle, err error) error { |
| 150 | local.WriteError(err.Error()) |
no test coverage detected