Skip to content

Commit c9cfe50

Browse files
laodouyalaodouya
authored andcommitted
Fix json tag warnings.
1 parent e1410af commit c9cfe50

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

client/driver.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ type ResourceMeta struct {
105105
TargetMiners []proto.AccountAddress `json:"target-miners,omitempty"` // designated miners
106106
Node uint16 `json:"node,omitempty"` // reserved node count
107107
Space uint64 `json:"space,omitempty"` // reserved storage space in bytes
108-
Memory uint64 `json:"memory",omitempty` // reserved memory in bytes
109-
LoadAvgPerCPU float64 `json:"load-avg-per-cpu",omitempty` // max loadAvg15 per CPU
108+
Memory uint64 `json:"memory,omitempty"` // reserved memory in bytes
109+
LoadAvgPerCPU float64 `json:"load-avg-per-cpu,omitempty"` // max loadAvg15 per CPU
110110
EncryptionKey string `json:"encrypt-key,omitempty"` // encryption key for database instance
111111
UseEventualConsistency bool `json:"eventual-consistency,omitempty"` // use eventual consistency replication if enabled
112112
ConsistencyLevel float64 `json:"consistency-level,omitempty"` // customized strong consistency level
@@ -478,7 +478,7 @@ func WaitTxConfirmation(
478478
state = resp.State
479479

480480
count++
481-
fmt.Printf("Waiting blockproducers confirmation %vs, state: %v \r", count, state)
481+
fmt.Printf("\rWaiting blockproducers confirmation %vs, state: %v \r", count, state)
482482
log.WithFields(log.Fields{
483483
"tx_hash": txHash,
484484
"tx_state": state,

0 commit comments

Comments
 (0)