chore: fix function names (#12043)

Co-authored-by: tomfees <170385392+tomfees@users.noreply.github.com>
This commit is contained in:
tomfees 2024-05-27 11:51:55 +08:00 committed by GitHub
parent 9851d35a38
commit 1879570628
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 6 additions and 6 deletions

View File

@ -47,7 +47,7 @@ var (
PruneThreshold = 7 * build.Finality PruneThreshold = 7 * build.Finality
) )
// GCHotstore runs online GC on the chain state in the hotstore according the to options specified // GCHotStore runs online GC on the chain state in the hotstore according the to options specified
func (s *SplitStore) GCHotStore(opts api.HotGCOpts) error { func (s *SplitStore) GCHotStore(opts api.HotGCOpts) error {
if opts.Moving { if opts.Moving {
gcOpts := []bstore.BlockstoreGCOption{bstore.WithFullGC(true)} gcOpts := []bstore.BlockstoreGCOption{bstore.WithFullGC(true)}

View File

@ -294,7 +294,7 @@ func TestFundManagerReserveByWallet(t *testing.T) {
checkAddMessageFields(t, msg, walletAddrB, s.acctAddr, types.BigAdd(amtB1, amtB2)) checkAddMessageFields(t, msg, walletAddrB, s.acctAddr, types.BigAdd(amtB1, amtB2))
} }
// TestFundManagerWithdrawal verifies that as many withdraw operations as // TestFundManagerWithdrawalLimit verifies that as many withdraw operations as
// possible are processed // possible are processed
func TestFundManagerWithdrawalLimit(t *testing.T) { func TestFundManagerWithdrawalLimit(t *testing.T) {
//stm: @MARKET_RESERVE_FUNDS_001, @MARKET_RELEASE_FUNDS_001, @MARKET_WITHDRAW_FUNDS_001 //stm: @MARKET_RESERVE_FUNDS_001, @MARKET_RELEASE_FUNDS_001, @MARKET_WITHDRAW_FUNDS_001

View File

@ -376,7 +376,7 @@ func TestFEVMTestApp(t *testing.T) {
} }
// TestFEVMTestApp creates a contract that just has a self destruct feature and calls it // TestFEVMTestConstructor creates a contract that just has a self destruct feature and calls it
func TestFEVMTestConstructor(t *testing.T) { func TestFEVMTestConstructor(t *testing.T) {
ctx, cancel, client := kit.SetupFEVMTest(t) ctx, cancel, client := kit.SetupFEVMTest(t)
defer cancel() defer cancel()
@ -407,7 +407,7 @@ func TestFEVMAutoSelfDestruct(t *testing.T) {
require.NoError(t, err) require.NoError(t, err)
} }
// TestFEVMTestApp creates a contract that just has a self destruct feature and calls it // TestFEVMTestSendToContract creates a contract that just has a self destruct feature and calls it
func TestFEVMTestSendToContract(t *testing.T) { func TestFEVMTestSendToContract(t *testing.T) {
ctx, cancel, client := kit.SetupFEVMTest(t) ctx, cancel, client := kit.SetupFEVMTest(t)
defer cancel() defer cancel()

View File

@ -25,7 +25,7 @@ import (
type ITestID string type ITestID string
// ItestNewID see ITestWithID doc // ITestNewID see ITestWithID doc
func ITestNewID() ITestID { func ITestNewID() ITestID {
return ITestID(strconv.Itoa(rand.Intn(99999))) return ITestID(strconv.Itoa(rand.Intn(99999)))
} }

View File

@ -212,7 +212,7 @@ func (m *Sealing) NumReserve(ctx context.Context, name string, reserving bitfiel
return m.numReserveLocked(ctx, name, reserving, force) return m.numReserveLocked(ctx, name, reserving, force)
} }
// NumReserve creates a new sector reservation // numReserveLocked creates a new sector reservation
func (m *Sealing) numReserveLocked(ctx context.Context, name string, reserving bitfield.BitField, force bool) error { func (m *Sealing) numReserveLocked(ctx context.Context, name string, reserving bitfield.BitField, force bool) error {
rk, err := reservationKey(name) rk, err := reservationKey(name)
if err != nil { if err != nil {