File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -984,7 +984,8 @@ func (conn *Connection) newFuture(req Request) (fut *Future) {
984984 if ctx != nil {
985985 select {
986986 case <- ctx .Done ():
987- fut .SetError (fmt .Errorf ("context is done (request ID %d) (%w)" , fut .requestId , ErrCancelledCtx ))
987+ fut .SetError (fmt .Errorf ("context is done (request ID %d) (%w)" ,
988+ fut .requestId , ErrCancelledCtx ))
988989 shard .rmut .Unlock ()
989990 return
990991 default :
Original file line number Diff line number Diff line change @@ -49,7 +49,8 @@ type Member struct {
4949 Val uint
5050}
5151
52- var contextDoneErrRegexp = regexp .MustCompile (fmt .Sprintf (`^context is done \(request ID [0-9]+\) \(%s\)$` , ErrCancelledCtx .Error ()))
52+ var contextDoneErrRegexp = regexp .MustCompile (
53+ fmt .Sprintf (`^context is done \(request ID [0-9]+\) \(%s\)$` , ErrCancelledCtx .Error ()))
5354
5455func (m * Member ) EncodeMsgpack (e * msgpack.Encoder ) error {
5556 if err := e .EncodeArrayLen (2 ); err != nil {
You can’t perform that action at this time.
0 commit comments