From 4372908d3d03faee50fb09f8c5714d2e5e117601 Mon Sep 17 00:00:00 2001 From: yumeiyin Date: Thu, 23 May 2024 23:09:37 +0800 Subject: [PATCH] chore: fix some function names --- pkg/chain/testing.go | 2 +- pkg/chainsync/syncer/syncer_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/chain/testing.go b/pkg/chain/testing.go index 589af08b00..681dd7d5e7 100644 --- a/pkg/chain/testing.go +++ b/pkg/chain/testing.go @@ -906,7 +906,7 @@ func (f *Builder) LoadSignedMessagesFromCids(ctx context.Context, secpCids []cid return f.mstore.LoadSignedMessagesFromCids(ctx, secpCids) } -// LoadMessages returns the message collections tracked by the builder. +// LoadMetaMessages returns the message collections tracked by the builder. func (f *Builder) LoadMetaMessages(ctx context.Context, metaCid cid.Cid) ([]*types.SignedMessage, []*types.Message, error) { return f.mstore.LoadMetaMessages(ctx, metaCid) } diff --git a/pkg/chainsync/syncer/syncer_test.go b/pkg/chainsync/syncer/syncer_test.go index 21cc3c02e4..fcd4b57269 100644 --- a/pkg/chainsync/syncer/syncer_test.go +++ b/pkg/chainsync/syncer/syncer_test.go @@ -490,7 +490,7 @@ func (pv *poisonValidator) ValidateHeaderSemantic(_ context.Context, header *typ return nil } -// ValidateHeaderSemantic is a stub that always returns no error +// ValidateMessagesSemantic is a stub that always returns no error func (pv *poisonValidator) ValidateMessagesSemantic(_ context.Context, _ *types.BlockHeader, _ *types.TipSet) error { return nil }