fix govet
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is passing Details

This commit is contained in:
Dan Ballard 2021-12-17 22:55:25 -05:00
parent 8250c04c52
commit 1d220381eb
1 changed files with 3 additions and 4 deletions

View File

@ -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.appBus.Publish(event.NewEvent(event.NewPeer, map[event.Field]string{event.Identity: profile.GetOnion(), event.Created: event.False}))
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