Skip to content

Commit 7022075

Browse files
authored
chore: fix some problematic function names (#787)
Signed-off-by: tzchenxixi <[email protected]>
1 parent c377ec6 commit 7022075

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

deps/config/dynamic.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ func EnableChangeDetection[T any](db *harmonydb.DB, obj T, layers []string, fixu
104104
return nil
105105
}
106106

107-
// copyWithOriginalDynamics copies the original dynamics from the original object to the new object.
107+
// CopyWithOriginalDynamics copies the original dynamics from the original object to the new object.
108108
func CopyWithOriginalDynamics[T any](orig T) (T, error) {
109109
typ := reflect.TypeOf(orig)
110110
val := reflect.ValueOf(orig)

harmony/harmonydb/harmonydb.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import (
2525

2626
type ITestID string
2727

28-
// ItestNewID see ITestWithID doc
28+
// ITestNewID see ITestWithID doc
2929
func ITestNewID() ITestID {
3030
return ITestID(strconv.Itoa(rand.Intn(99999)))
3131
}

market/indexstore/indexstore.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ func NewIndexStore(hosts []string, port int, cfg *config.CurioConfig) *IndexStor
9595

9696
type ITestID string
9797

98-
// ItestNewID see ITestWithID doc
98+
// ITestNewID see ITestWithID doc
9999
func ITestNewID() ITestID {
100100
return ITestID(strconv.Itoa(rand.Intn(99999)))
101101
}

market/mk12/http/http.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ type MK12DealHandler struct {
3434
disabledMiners []address.Address
3535
}
3636

37-
// NewMarketDealHandler creates a new Redirector with a database connection
37+
// NewMK12DealHandler creates a new Redirector with a database connection
3838
func NewMK12DealHandler(db *harmonydb.DB, cfg *config.CurioConfig, dm *storage_market.CurioStorageDealMarket) (*MK12DealHandler, error) {
3939
var disabledMiners []address.Address
4040
for _, m := range cfg.Market.StorageMarketConfig.MK12.DisabledMiners {

0 commit comments

Comments
 (0)