Browse Source

Removed multi bool flag. Not applicable.

master
Benjamin Shelton 2 weeks ago
parent
commit
ef5938deda
2 changed files with 4 additions and 4 deletions
  1. +3
    -3
      application.go
  2. +1
    -1
      signals.go

+ 3
- 3
application.go View File

@ -112,8 +112,8 @@ func (a *application) AttachApplication(app Application) {
// If the current proxy isn't a multiapp proxy, we'll fix that and set the
// current proxy as the default handler.
p, multi := a.proxy.(MultiAppProxyHandler)
if !multi {
p, ok := a.proxy.(MultiAppProxyHandler)
if !ok {
p = NewMultiAppProxy(NewRadixLoader(a.Router().proxy))
a.Router().SetupMuxer()
@ -132,7 +132,7 @@ func (a *application) AttachApplication(app Application) {
// Signal: OnApplicationAttached.
signals.EmitFunc(SigApplicationAttached, func(fn interface{}) {
if f, ok := fn.(OnApplicationAttached); ok {
f(app, multi, a.master)
f(app, a.master)
}
})


+ 1
- 1
signals.go View File

@ -19,7 +19,7 @@ var SigApplicationAttached = signals.New((OnApplicationAttached)(nil))
//
// In some cases, the master application and current application may be a
// pointer to the same interface.
type OnApplicationAttached func(Application, bool, Application)
type OnApplicationAttached func(Application, Application)
// SigApplicationListening emits immediatley prior to the call site where the application begins listening to its configured socket(s).
var SigApplicationListening = signals.New((OnApplicationListening)(nil))


Loading…
Cancel
Save