fix govet
This commit is contained in:
parent
8250c04c52
commit
1d220381eb
|
@ -196,11 +196,10 @@ func (app *application) installProfile(profile peer.CwtchPeer) bool {
|
||||||
app.engines[profile.GetOnion()], _ = profile.GenerateProtocolEngine(app.acn, app.eventBuses[profile.GetOnion()])
|
app.engines[profile.GetOnion()], _ = profile.GenerateProtocolEngine(app.acn, app.eventBuses[profile.GetOnion()])
|
||||||
app.appBus.Publish(event.NewEvent(event.NewPeer, map[event.Field]string{event.Identity: profile.GetOnion(), event.Created: event.False}))
|
app.appBus.Publish(event.NewEvent(event.NewPeer, map[event.Field]string{event.Identity: profile.GetOnion(), event.Created: event.False}))
|
||||||
return true
|
return true
|
||||||
} else {
|
|
||||||
// Otherwise shutdown the connections
|
|
||||||
profile.Shutdown()
|
|
||||||
return false
|
|
||||||
}
|
}
|
||||||
|
// Otherwise shutdown the connections
|
||||||
|
profile.Shutdown()
|
||||||
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetPrimaryBus returns the bus the Application uses for events that aren't peer specific
|
// GetPrimaryBus returns the bus the Application uses for events that aren't peer specific
|
||||||
|
|
Loading…
Reference in New Issue