Room Allocator Interface (#161)

* room allocator interface

* remove wire bind

* fix test
This commit is contained in:
Mathew Kamkar
2021-10-28 21:02:17 -07:00
committed by GitHub
parent 0898c17e8a
commit f3e916e2fe
7 changed files with 26 additions and 21 deletions
+2 -2
View File
@@ -14,11 +14,11 @@ import (
// A rooms service that supports a single node
type RoomService struct {
router routing.Router
roomAllocator *RoomAllocator
roomAllocator RoomAllocator
roomStore RoomStore
}
func NewRoomService(ra *RoomAllocator, rs RoomStore, router routing.Router) (svc *RoomService, err error) {
func NewRoomService(ra RoomAllocator, rs RoomStore, router routing.Router) (svc *RoomService, err error) {
svc = &RoomService{
router: router,
roomAllocator: ra,