Skip to content

Commit 4d60196

Browse files
committed
goimports a bit
1 parent 821fb5b commit 4d60196

File tree

6 files changed

+13
-8
lines changed

6 files changed

+13
-8
lines changed

connection.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,15 @@ import (
55
"bytes"
66
"errors"
77
"fmt"
8-
"gopkg.in/vmihailenco/msgpack.v2"
98
"io"
109
"log"
1110
"net"
1211
"runtime"
1312
"sync"
1413
"sync/atomic"
1514
"time"
15+
16+
"gopkg.in/vmihailenco/msgpack.v2"
1617
)
1718

1819
const requestsMap = 128

example_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ package tarantool_test
22

33
import (
44
"fmt"
5-
"github.com/tarantool/go-tarantool"
65
"time"
6+
7+
"github.com/tarantool/go-tarantool"
78
)
89

910
type Tuple struct {

queue/example_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,17 @@ package queue_test
22

33
import (
44
"fmt"
5+
"time"
6+
57
"github.com/tarantool/go-tarantool"
68
"github.com/tarantool/go-tarantool/queue"
7-
"time"
89
)
910

1011
func ExampleConnection_Queue() {
1112
cfg := queue.Cfg{
1213
Temporary: false,
1314
Kind: queue.FIFO,
14-
Opts: queue.Opts{
15+
Opts: queue.Opts{
1516
Ttl: 10 * time.Second,
1617
},
1718
}

queue/queue.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,8 +276,8 @@ func (q *queue) Kick(count uint64) (uint64, error) {
276276

277277
// Delete the task identified by its id.
278278
func (q *queue) Delete(taskId uint64) error {
279-
_, err := q._delete(taskId)
280-
return err
279+
_, err := q._delete(taskId)
280+
return err
281281
}
282282

283283
// Return the number of tasks in a queue broken down by task_state, and the number of requests broken down by the type of request.

response.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package tarantool
22

33
import (
44
"fmt"
5+
56
"gopkg.in/vmihailenco/msgpack.v2"
67
)
78

tarantool_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@ package tarantool_test
22

33
import (
44
"fmt"
5-
. "github.com/tarantool/go-tarantool"
6-
"gopkg.in/vmihailenco/msgpack.v2"
75
"strings"
86
"sync"
97
"testing"
108
"time"
9+
10+
. "github.com/tarantool/go-tarantool"
11+
"gopkg.in/vmihailenco/msgpack.v2"
1112
)
1213

1314
type Member struct {

0 commit comments

Comments
 (0)