Move callbacks out of messageRouter (#269)
* move callbacks out of messageRouter * OCD * more OCD * fix forwarder test * even more OCD * maximum OCD * package name collision, copy lock by value
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
// Code generated by Wire. DO NOT EDIT.
|
||||
|
||||
//go:generate go run github.com/google/wire/cmd/wire
|
||||
//go:build !wireinject
|
||||
// +build !wireinject
|
||||
//+build !wireinject
|
||||
|
||||
package service
|
||||
|
||||
@@ -28,7 +27,7 @@ func InitializeServer(conf *config.Config, currentNode routing.LocalNode) (*Live
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
router := routing.CreateRouter(conf, client, currentNode)
|
||||
router := routing.CreateRouter(client, currentNode)
|
||||
roomStore := createStore(client)
|
||||
roomAllocator, err := NewRoomAllocator(conf, router, roomStore)
|
||||
if err != nil {
|
||||
@@ -72,7 +71,7 @@ func InitializeRouter(conf *config.Config, currentNode routing.LocalNode) (routi
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
router := routing.CreateRouter(conf, client, currentNode)
|
||||
router := routing.CreateRouter(client, currentNode)
|
||||
return router, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user