Skip to content

Commit c9a6551

Browse files
author
Sarah Christoff
committed
T
1 parent f3754d9 commit c9a6551

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

v2/bolt_store.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -271,9 +271,9 @@ func (b *BoltStore) Sync() error {
271271
return b.conn.Sync()
272272
}
273273

274-
// MigratetoV2 reads in the source file path of a BoltDB file
274+
// MigrateToV2 reads in the source file path of a BoltDB file
275275
// 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) {
277277
_, err := os.Stat(destination)
278278
if err == nil {
279279
return nil, fmt.Errorf("file exists in destination %v", destination)

v2/bolt_store_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ func TestBoltStore_SetUint64_GetUint64(t *testing.T) {
417417
}
418418
}
419419

420-
func TestBoltStore_MigratetoV2(t *testing.T) {
420+
func TestBoltStore_MigrateToV2(t *testing.T) {
421421

422422
dir, err := ioutil.TempDir("", t.Name())
423423
if err != nil {
@@ -455,7 +455,7 @@ func TestBoltStore_MigratetoV2(t *testing.T) {
455455
t.Fatalf("failed closing source database: %s", err)
456456
}
457457

458-
destDb, err := MigratetoV2(srcFile, destFile)
458+
destDb, err := MigrateToV2(srcFile, destFile)
459459
if err != nil {
460460
t.Fatalf("did not migrate successfully, err %v", err)
461461
}

0 commit comments

Comments
 (0)