Skip to content

Commit f5cbb11

Browse files
committed
code health: run gofmt from GoLang 1.19
golangci-lint on GitHub Actions uses a latest gofmt from GoLang 1.19. The patch contains changes from gofmt 1.19 run to fix golangci-lint check on CI.
1 parent 65a6de4 commit f5cbb11

File tree

7 files changed

+34
-35
lines changed

7 files changed

+34
-35
lines changed

connection_pool/const.go

+12-12
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,18 @@ Mode parameter:
1717
1818
- PREFER_RW (prefer write only instance (master)) - if there is one, otherwise fallback to a read only one (replica).
1919
20-
Request Default mode
21-
---------- --------------
22-
| call | no default |
23-
| eval | no default |
24-
| ping | no default |
25-
| insert | RW |
26-
| delete | RW |
27-
| replace | RW |
28-
| update | RW |
29-
| upsert | RW |
30-
| select | ANY |
31-
| get | ANY |
20+
Request Default mode
21+
---------- --------------
22+
| call | no default |
23+
| eval | no default |
24+
| ping | no default |
25+
| insert | RW |
26+
| delete | RW |
27+
| replace | RW |
28+
| update | RW |
29+
| upsert | RW |
30+
| select | ANY |
31+
| get | ANY |
3232
*/
3333
const (
3434
ANY = iota

decimal/bcd.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@
99
// The first byte of the BCD array contains the first digit of the number,
1010
// represented as follows:
1111
//
12-
// | 4 bits | 4 bits |
13-
// = 0x = the 1st digit
12+
// | 4 bits | 4 bits |
13+
// = 0x = the 1st digit
1414
//
1515
// (The first nibble contains 0 if the decimal number has an even number of
1616
// digits). The last byte of the BCD array contains the last digit of the
1717
// number and the final nibble, represented as follows:
1818
//
19-
// | 4 bits | 4 bits |
20-
// = the last digit = nibble
19+
// | 4 bits | 4 bits |
20+
// = the last digit = nibble
2121
//
2222
// The final nibble represents the number's sign: 0x0a, 0x0c, 0x0e, 0x0f stand
2323
// for plus, 0x0b and 0x0d stand for minus.

future.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -210,10 +210,9 @@ func (fut *Future) GetTyped(result interface{}) error {
210210
// and a response. Push messages and the response will contain deserialized
211211
// result in Data field as for the Get() function.
212212
//
213-
// See also
213+
// # See also
214214
//
215215
// * box.session.push() https://www.tarantool.io/en/doc/latest/reference/reference_lua/box_session/push/
216-
//
217216
func (fut *Future) GetIterator() (it TimeoutResponseIterator) {
218217
futit := &asyncResponseIterator{
219218
fut: fut,

queue/queue.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
//
44
// Since: 1.5.
55
//
6-
// See also
6+
// # See also
77
//
88
// * Tarantool queue module https://github.com/tarantool/queue
99
package queue

schema.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"fmt"
66
)
77

8-
//nolint: varcheck,deadcode
8+
// nolint: varcheck,deadcode
99
const (
1010
maxSchemas = 10000
1111
spaceSpId = 280

ssl_test.go

+14-14
Original file line numberDiff line numberDiff line change
@@ -198,20 +198,20 @@ type test struct {
198198
}
199199

200200
/*
201-
Requirements from Tarantool Enterprise Edition manual:
202-
https://www.tarantool.io/ru/enterprise_doc/security/#configuration
203-
204-
For a server:
205-
KeyFile - mandatory
206-
CertFile - mandatory
207-
CaFile - optional
208-
Ciphers - optional
209-
210-
For a client:
211-
KeyFile - optional, mandatory if server.CaFile set
212-
CertFile - optional, mandatory if server.CaFile set
213-
CaFile - optional,
214-
Ciphers - optional
201+
Requirements from Tarantool Enterprise Edition manual:
202+
https://www.tarantool.io/ru/enterprise_doc/security/#configuration
203+
204+
For a server:
205+
KeyFile - mandatory
206+
CertFile - mandatory
207+
CaFile - optional
208+
Ciphers - optional
209+
210+
For a client:
211+
KeyFile - optional, mandatory if server.CaFile set
212+
CertFile - optional, mandatory if server.CaFile set
213+
CaFile - optional,
214+
Ciphers - optional
215215
*/
216216
var tests = []test{
217217
{

uuid/uuid.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
//
55
// Since: 1.6.0.
66
//
7-
// See also
7+
// # See also
88
//
99
// * Tarantool commit with UUID support https://github.com/tarantool/tarantool/commit/d68fc29246714eee505bc9bbcd84a02de17972c5
1010
//

0 commit comments

Comments
 (0)