mirror of
https://github.com/FluuxIO/go-xmpp.git
synced 2024-11-21 01:52:01 -08:00
Clean-up
This commit is contained in:
parent
2c7b03fcea
commit
7aef8357ed
@ -37,8 +37,6 @@ type ComponentOptions struct {
|
||||
// =================================
|
||||
// Communication with developer client / StreamManager
|
||||
|
||||
// Packet channel
|
||||
RecvChannel chan Packet
|
||||
// Track and broadcast connection state
|
||||
EventManager
|
||||
}
|
||||
@ -60,8 +58,6 @@ type Component struct {
|
||||
|
||||
func NewComponent(opts ComponentOptions, r *Router) (*Component, error) {
|
||||
c := Component{ComponentOptions: opts, router: r}
|
||||
// Create a default channel that developers can override
|
||||
c.RecvChannel = make(chan Packet)
|
||||
return &c, nil
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user