Skip to content

code health: run gofmt from GoLang 1.19 #204

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions connection_pool/const.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,18 @@ Mode parameter:

- PREFER_RW (prefer write only instance (master)) - if there is one, otherwise fallback to a read only one (replica).

Request Default mode
---------- --------------
| call | no default |
| eval | no default |
| ping | no default |
| insert | RW |
| delete | RW |
| replace | RW |
| update | RW |
| upsert | RW |
| select | ANY |
| get | ANY |
Request Default mode
---------- --------------
| call | no default |
| eval | no default |
| ping | no default |
| insert | RW |
| delete | RW |
| replace | RW |
| update | RW |
| upsert | RW |
| select | ANY |
| get | ANY |
*/
const (
ANY = iota
Expand Down
8 changes: 4 additions & 4 deletions decimal/bcd.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
// The first byte of the BCD array contains the first digit of the number,
// represented as follows:
//
// | 4 bits | 4 bits |
// = 0x = the 1st digit
// | 4 bits | 4 bits |
// = 0x = the 1st digit
//
// (The first nibble contains 0 if the decimal number has an even number of
// digits). The last byte of the BCD array contains the last digit of the
// number and the final nibble, represented as follows:
//
// | 4 bits | 4 bits |
// = the last digit = nibble
// | 4 bits | 4 bits |
// = the last digit = nibble
//
// The final nibble represents the number's sign: 0x0a, 0x0c, 0x0e, 0x0f stand
// for plus, 0x0b and 0x0d stand for minus.
Expand Down
3 changes: 1 addition & 2 deletions future.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,9 @@ func (fut *Future) GetTyped(result interface{}) error {
// and a response. Push messages and the response will contain deserialized
// result in Data field as for the Get() function.
//
// See also
// # See also
//
// * box.session.push() https://www.tarantool.io/en/doc/latest/reference/reference_lua/box_session/push/
//
func (fut *Future) GetIterator() (it TimeoutResponseIterator) {
futit := &asyncResponseIterator{
fut: fut,
Expand Down
2 changes: 1 addition & 1 deletion queue/queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//
// Since: 1.5.
//
// See also
// # See also
//
// * Tarantool queue module https://github.com/tarantool/queue
package queue
Expand Down
2 changes: 1 addition & 1 deletion schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
)

//nolint: varcheck,deadcode
// nolint: varcheck,deadcode
const (
maxSchemas = 10000
spaceSpId = 280
Expand Down
28 changes: 14 additions & 14 deletions ssl_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,20 +198,20 @@ type test struct {
}

/*
Requirements from Tarantool Enterprise Edition manual:
https://www.tarantool.io/ru/enterprise_doc/security/#configuration

For a server:
KeyFile - mandatory
CertFile - mandatory
CaFile - optional
Ciphers - optional

For a client:
KeyFile - optional, mandatory if server.CaFile set
CertFile - optional, mandatory if server.CaFile set
CaFile - optional,
Ciphers - optional
Requirements from Tarantool Enterprise Edition manual:
https://www.tarantool.io/ru/enterprise_doc/security/#configuration

For a server:
KeyFile - mandatory
CertFile - mandatory
CaFile - optional
Ciphers - optional

For a client:
KeyFile - optional, mandatory if server.CaFile set
CertFile - optional, mandatory if server.CaFile set
CaFile - optional,
Ciphers - optional
*/
var tests = []test{
{
Expand Down
2 changes: 1 addition & 1 deletion uuid/uuid.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//
// Since: 1.6.0.
//
// See also
// # See also
//
// * Tarantool commit with UUID support https://github.com/tarantool/tarantool/commit/d68fc29246714eee505bc9bbcd84a02de17972c5
//
Expand Down