From b8cba989afaf9db8bac1d3c2bc474ae671c6df31 Mon Sep 17 00:00:00 2001 From: yinwenyu6 Date: Sun, 17 Aug 2025 14:51:16 +0800 Subject: [PATCH] chore: fix some function names in comment Signed-off-by: yinwenyu6 --- dot/sync/unready_blocks.go | 2 +- internal/client/consensus/grandpa/environment.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dot/sync/unready_blocks.go b/dot/sync/unready_blocks.go index d08d69ee16..10bdcdbcee 100644 --- a/dot/sync/unready_blocks.go +++ b/dot/sync/unready_blocks.go @@ -201,7 +201,7 @@ func (u *unreadyBlocks) removeIncompleteBlocks(del func(key common.Hash, value * maps.DeleteFunc(u.incompleteBlocks, del) } -// pruneFragments will iterate over the disjoint fragments and check if they +// pruneDisjointFragments will iterate over the disjoint fragments and check if they // can be removed based on the del param func (u *unreadyBlocks) pruneDisjointFragments(del func(*Fragment) bool) { u.mtx.Lock() diff --git a/internal/client/consensus/grandpa/environment.go b/internal/client/consensus/grandpa/environment.go index fd836c321e..9b42efdaf8 100644 --- a/internal/client/consensus/grandpa/environment.go +++ b/internal/client/consensus/grandpa/environment.go @@ -303,7 +303,7 @@ func (mvdt voterSetStateVDT[H, N]) ValueAt(index uint) (value any, err error) { return nil, scale.ErrUnsupportedVaryingDataTypeValue } -// newVoterSetState is constructor for voterSetState +// newVoterSetStateVDT is constructor for voterSetState func newVoterSetStateVDT[H runtime.Hash, N runtime.Number]() *voterSetStateVDT[H, N] { return &voterSetStateVDT[H, N]{} }