From 18f64727c924506d511a78e4d37efba59de2a9c1 Mon Sep 17 00:00:00 2001 From: rustversion Date: Sun, 9 Nov 2025 17:03:18 +0800 Subject: [PATCH] chore: minor improvement for docs Signed-off-by: rustversion --- ethstorage/data_file.go | 2 +- ethstorage/p2p/node.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ethstorage/data_file.go b/ethstorage/data_file.go index 4f945539..99b2d869 100644 --- a/ethstorage/data_file.go +++ b/ethstorage/data_file.go @@ -54,7 +54,7 @@ type DataFileHeader struct { status uint64 } -// Mask the data in place. Padding zeros to userData if the len of userData is smaller than that of maskData, +// Mask the data in place. Padding zeros to userData if the len of userData is smaller than that of maskData. func MaskDataInPlace(maskData []byte, userData []byte) []byte { if len(userData) > len(maskData) { panic("user data can not be larger than mask data") diff --git a/ethstorage/p2p/node.go b/ethstorage/p2p/node.go index 985026ec..79594491 100644 --- a/ethstorage/p2p/node.go +++ b/ethstorage/p2p/node.go @@ -100,8 +100,8 @@ func (n *NodeP2P) init(resourcesCtx context.Context, chainID *big.Int, lg log.Lo ) css, err := n.Host().Peerstore().Get(remotePeerId, protocol.EthStorageENRKey) if err != nil { - // for node which is new to the ethstorage network, and it dial the nodes which do not contain - // the new node's enr, so the nodes do not know its shard list from enr, so it needs to call + // For nodes new to the ethstorage network that dial nodes which do not contain + // the new node's enr, the nodes do not know its shard list from enr, so it needs to call // n.RequestShardList to fetch the shard list of the new node. remoteShardList, e := n.RequestShardList(remotePeerId) if e != nil && len(n.host.Peerstore().Addrs(remotePeerId)) == 0 {