You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Removed error's suppression in check.yaml.
Suppressed the highlighting of errorcheck in all methods,
having encodeXxx inside. For now these methods are not able to
return any error cause of internal implementation of writer
interface. For future, if the implementation of writer
will be changed, and we will have to check errors, we must think
about how to say to compiler that the error check is 'unlikely'.
Fixed the use of time package API, all places with calls of
time.Now().Sub(). Now time package propose the explicit time.Until().
Replaced some calls of Errorf() with Fatalf() in tests. That change
prevents nil dereferences below in the code.
Suppressed the highlighting of all unused constants and functions.
Fixed calling of Fatalf from non-testing goroutine in queue tests.
It is not a valid way to stop test from another goroutine.
Relates to #142
Copy file name to clipboardExpand all lines: connection.go
+9-6
Original file line number
Diff line number
Diff line change
@@ -145,7 +145,7 @@ type connShard struct {
145
145
bufmut sync.Mutex
146
146
bufsmallWBuf
147
147
enc*msgpack.Encoder
148
-
_pad [16]uint64
148
+
_pad [16]uint64//nolint: structcheck,unused
149
149
}
150
150
151
151
// Greeting is a message sent by tarantool on connect.
@@ -227,6 +227,7 @@ type Opts struct {
227
227
//
228
228
// - If opts.Reconnect is non-zero, then error will be returned only if authorization// fails. But if Tarantool is not reachable, then it will attempt to reconnect later
229
229
// and will not end attempts on authorization failures.
0 commit comments