diff --git a/cmd/experimental/migrate/internal/migrate.go b/cmd/experimental/migrate/internal/migrate.go index dae149df..bca1ffe6 100644 --- a/cmd/experimental/migrate/internal/migrate.go +++ b/cmd/experimental/migrate/internal/migrate.go @@ -96,10 +96,10 @@ func Migrate(ctx context.Context, numWorkers int, sourceSize uint64, sourceRoot // init targetSize, targetRoot, err := m.storage.State(ctx) if err != nil { - return fmt.Errorf("Size: %v", err) + return fmt.Errorf("size: %v", err) } if targetSize > sourceSize { - return fmt.Errorf("Target size %d > source size %d", targetSize, sourceSize) + return fmt.Errorf("target size %d > source size %d", targetSize, sourceSize) } if targetSize == sourceSize { if !bytes.Equal(targetRoot, sourceRoot) { @@ -137,7 +137,7 @@ func Migrate(ctx context.Context, numWorkers int, sourceSize uint64, sourceRoot eg.Go(func() error { r, err := m.storage.AwaitIntegration(ctx, sourceSize) if err != nil { - return fmt.Errorf("Migration failed: %v", err) + return fmt.Errorf("migration failed: %v", err) } if !bytes.Equal(root, sourceRoot) { return fmt.Errorf("migration completed, but local root hash %x != source root hash %x", targetRoot, sourceRoot) @@ -147,7 +147,7 @@ func Migrate(ctx context.Context, numWorkers int, sourceSize uint64, sourceRoot }) if err := eg.Wait(); err != nil { - return fmt.Errorf("Migration failed: %v", err) + return fmt.Errorf("migration failed: %v", err) } klog.Infof("Migration successful.")