Skip to content

Commit 35999b5

Browse files
committed
hotfix
1 parent aa2dafa commit 35999b5

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

connection.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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:

tarantool_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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

5455
func (m *Member) EncodeMsgpack(e *msgpack.Encoder) error {
5556
if err := e.EncodeArrayLen(2); err != nil {

0 commit comments

Comments
 (0)