From af3c418ea9c49d05b7fad0992165acf209632f30 Mon Sep 17 00:00:00 2001 From: Jae Kwon Date: Thu, 26 Mar 2015 00:52:07 -0700 Subject: [PATCH] comment fixes --- p2p/switch_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2p/switch_test.go b/p2p/switch_test.go index f486230f..ffdb9950 100644 --- a/p2p/switch_test.go +++ b/p2p/switch_test.go @@ -68,10 +68,10 @@ func (tr *TestReactor) Receive(chId byte, peer *Peer, msgBytes []byte) { //----------------------------------------------------------------------------- -// convenience method for creating bar switches connected to each other. +// convenience method for creating two switches connected to each other. func makeSwitchPair(t testing.TB, initSwitch func(*Switch) *Switch) (*Switch, *Switch) { - // Create bar switches that will be interconnected. + // Create two switches that will be interconnected. s1 := initSwitch(NewSwitch()) s2 := initSwitch(NewSwitch()) @@ -105,7 +105,7 @@ func makeSwitchPair(t testing.TB, initSwitch func(*Switch) *Switch) (*Switch, *S func TestSwitches(t *testing.T) { s1, s2 := makeSwitchPair(t, func(sw *Switch) *Switch { - // Make bar reactors of bar channels each + // Make two reactors of two channels each sw.AddReactor("foo", NewTestReactor([]*ChannelDescriptor{ &ChannelDescriptor{Id: byte(0x00), Priority: 10}, &ChannelDescriptor{Id: byte(0x01), Priority: 10},