forked from TrueCloudLab/frostfs-node
[#772] node: Apply gofumpt
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
00aa6d9749
commit
79088baa06
136 changed files with 293 additions and 239 deletions
|
@ -166,14 +166,14 @@ func TestTokenStore_RemoveOld(t *testing.T) {
|
|||
//
|
||||
// If this test is passing, TokenStore works correctly.
|
||||
func TestBolt_Cursor(t *testing.T) {
|
||||
db, err := bbolt.Open(filepath.Join(t.TempDir(), ".storage"), 0666, nil)
|
||||
db, err := bbolt.Open(filepath.Join(t.TempDir(), ".storage"), 0o666, nil)
|
||||
require.NoError(t, err)
|
||||
|
||||
defer db.Close()
|
||||
|
||||
cursorKeys := make(map[string]struct{})
|
||||
|
||||
var bucketName = []byte("bucket")
|
||||
bucketName := []byte("bucket")
|
||||
|
||||
err = db.Update(func(tx *bbolt.Tx) (err error) {
|
||||
b, err := tx.CreateBucket(bucketName)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue