File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -271,9 +271,9 @@ func (b *BoltStore) Sync() error {
271
271
return b .conn .Sync ()
272
272
}
273
273
274
- // MigratetoV2 reads in the source file path of a BoltDB file
274
+ // MigrateToV2 reads in the source file path of a BoltDB file
275
275
// and outputs all the data migrated to a Bbolt destination file
276
- func MigratetoV2 (source , destination string ) (* BoltStore , error ) {
276
+ func MigrateToV2 (source , destination string ) (* BoltStore , error ) {
277
277
_ , err := os .Stat (destination )
278
278
if err == nil {
279
279
return nil , fmt .Errorf ("file exists in destination %v" , destination )
Original file line number Diff line number Diff line change @@ -417,7 +417,7 @@ func TestBoltStore_SetUint64_GetUint64(t *testing.T) {
417
417
}
418
418
}
419
419
420
- func TestBoltStore_MigratetoV2 (t * testing.T ) {
420
+ func TestBoltStore_MigrateToV2 (t * testing.T ) {
421
421
422
422
dir , err := ioutil .TempDir ("" , t .Name ())
423
423
if err != nil {
@@ -455,7 +455,7 @@ func TestBoltStore_MigratetoV2(t *testing.T) {
455
455
t .Fatalf ("failed closing source database: %s" , err )
456
456
}
457
457
458
- destDb , err := MigratetoV2 (srcFile , destFile )
458
+ destDb , err := MigrateToV2 (srcFile , destFile )
459
459
if err != nil {
460
460
t .Fatalf ("did not migrate successfully, err %v" , err )
461
461
}
You can’t perform that action at this time.
0 commit comments