Skip to content

Commit

Permalink
chore: use format to output
Browse files Browse the repository at this point in the history
  • Loading branch information
simlecode committed Dec 7, 2023
1 parent e45c2b3 commit 91fed59
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pkg/fork/fork.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,11 @@ func init() {
if mwcs := os.Getenv(EnvMigrationMaxWorkerCount); mwcs != "" {
mwc, err := strconv.ParseInt(mwcs, 10, 32)
if err != nil {
log.Warnf("invalid value for %s (%s) defaulting to %d: %s", EnvMigrationMaxWorkerCount, mwcs, MigrationMaxWorkerCount, err)
fmt.Printf("invalid value for %s (%s) defaulting to %d: %s\n", EnvMigrationMaxWorkerCount, mwcs, MigrationMaxWorkerCount, err)
return
}
// use value from environment
log.Infof("migration worker cound set from %s (%d)", EnvMigrationMaxWorkerCount, mwc)
fmt.Printf("migration worker count set from %s (%d)\n", EnvMigrationMaxWorkerCount, mwc)
MigrationMaxWorkerCount = int(mwc)
return
}
Expand Down
2 changes: 1 addition & 1 deletion venus-shared/utils/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/stretchr/testify/assert"
)

func TestNetworkNamtToNetworkType(t *testing.T) {
func TestNetworkNameToNetworkType(t *testing.T) {
tf.UnitTest(t)
assert.Len(t, NetworkTypeWithNetworkName, 6)
assert.Len(t, NetworkNameWithNetworkType, 6)
Expand Down

0 comments on commit 91fed59

Please sign in to comment.