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
@@ -21,13 +21,13 @@ import (
type RTCService struct {
router routing.Router
roomAllocator *RoomAllocator
roomAllocator RoomAllocator
upgrader websocket.Upgrader
currentNode routing.LocalNode
isDev bool
}
func NewRTCService(conf *config.Config, ra *RoomAllocator, router routing.Router, currentNode routing.LocalNode) *RTCService {
func NewRTCService(conf *config.Config, ra RoomAllocator, router routing.Router, currentNode routing.LocalNode) *RTCService {
s := &RTCService{
router: router,
roomAllocator: ra,