File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ func (rm *RouteManager) Add(route *Route) error {
140140 }
141141 route .closer = make (chan struct {})
142142 route .adapter = adapter
143- //Stop any existing route with this ID:
143+ // Stop any existing route with this ID:
144144 if rm .routes [route .ID ] != nil {
145145 rm .routes [route .ID ].closer <- struct {}{}
146146 }
Original file line number Diff line number Diff line change @@ -32,10 +32,10 @@ func TestRouterGetAll(t *testing.T) {
3232func TestRouterNoDuplicateIds (t * testing.T ) {
3333 AdapterFactories .Register (newDummyAdapter , "syslog" )
3434
35- //Mock "running" so routes actually start running when added.
35+ // Mock "running" so routes actually start running when added.
3636 Routes .routing = true
3737
38- //Start the first route.
38+ // Start the first route.
3939 route1 := & Route {
4040 ID : "abc" ,
4141 Address : "someUrl" ,
@@ -45,7 +45,7 @@ func TestRouterNoDuplicateIds(t *testing.T) {
4545 t .Error ("Error adding route:" , err )
4646 }
4747
48- //Start a second route with the same ID.
48+ // Start a second route with the same ID.
4949 var route2 = & Route {
5050 ID : "abc" ,
5151 Address : "someUrl2" ,
You can’t perform that action at this time.
0 commit comments