Skip to content

Commit fd84470

Browse files
authored
docs: fix grammatical errors (#5189)
* Update msg.go Signed-off-by: VolodymyrBg <[email protected]> * Update discovery_test.go Signed-off-by: VolodymyrBg <[email protected]> * Update orgs_test.go Signed-off-by: VolodymyrBg <[email protected]> * Update config.go Signed-off-by: VolodymyrBg <[email protected]> --------- Signed-off-by: VolodymyrBg <[email protected]>
1 parent 970bad3 commit fd84470

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

gossip/comm/msg.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func (m *ReceivedMessageImpl) GetGossipMessage() *protoext.SignedGossipMessage {
4242
}
4343

4444
// GetConnectionInfo returns information about the remote peer
45-
// that send the message
45+
// that sends the message
4646
func (m *ReceivedMessageImpl) GetConnectionInfo() *protoext.ConnectionInfo {
4747
return m.connInfo
4848
}

gossip/discovery/discovery_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1462,7 +1462,7 @@ func TestMsgStoreExpirationWithMembershipMessages(t *testing.T) {
14621462

14631463
// Checking is new Alive was processed
14641464
for i := 0; i < peersNum; i++ {
1465-
checkAliveMsgExist(instances, newAliveMsgs, i, "[Step 2 - proccesing aliveMsg]")
1465+
checkAliveMsgExist(instances, newAliveMsgs, i, "[Step 2 - processing aliveMsg]")
14661466
}
14671467

14681468
checkAliveMsgNotExist := func(instances []*gossipInstance, msgs []*protoext.SignedGossipMessage, index int, step string) {
@@ -1762,7 +1762,7 @@ func TestMembershipAfterExpiration(t *testing.T) {
17621762
}
17631763

17641764
return flogging.NewFabricLogger(l, zap.Hooks(func(entry zapcore.Entry) error {
1765-
// do nothing if we already found all the expectedMsgs
1765+
// do nothing if we have already found all the expectedMsgs
17661766
lock.RLock()
17671767
expectedMsgSize := len(expectedMsgs)
17681768
lock.RUnlock()

gossip/gossip/orgs_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ func TestMultipleOrgEndpointLeakage(t *testing.T) {
245245
peersKnown := p.Peers()
246246
peersToKnow := expectedMembershipSize[string(pkiID)]
247247
if peersToKnow != len(peersKnown) {
248-
t.Logf("peer %#v doesn't know the needed amount of peers, extected %#v, actual %#v", peerNetMember.Endpoint, peersToKnow, len(peersKnown))
248+
t.Logf("peer %#v doesn't know the needed amount of peers, expected %#v, actual %#v", peerNetMember.Endpoint, peersToKnow, len(peersKnown))
249249
return false
250250
}
251251
for _, knownPeer := range peersKnown {

internal/configtxgen/genesisconfig/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ var cache = &configCache{
474474
}
475475

476476
// load loads the TopLevel config structure from configCache.
477-
// if not successful, it unmarshal a config file, and populate configCache
477+
// if not successful, it unmarshals a config file, and populate configCache
478478
// with marshaled TopLevel struct.
479479
func (c *configCache) load(config *viperutil.ConfigParser, configPath string) (*TopLevel, error) {
480480
c.mutex.Lock()

0 commit comments

Comments
 (0)