feat(gateway): extract ChatContract service
This commit is contained in:
1 parent
34cb25f130
commit
0a6496d2cd
20 files changed
+525
-79
No files matched your search
@@ -9,5 +9,9 @@ func testChatService(router *gateway.Router, sessions gateway.SessionStore, turn
|
||||
}
|
||||
|
||||
func testLocalChat(service *ChatService) *gateway.LocalChatAdapter {
|
||||
return service.Contract.(*gateway.LocalChatAdapter)
|
||||
local, ok := service.Contract.(*gateway.LocalChatAdapter)
|
||||
if !ok {
|
||||
panic("test chat contract is not local")
|
||||
}
|
||||
return local
|
||||
}
|
||||
Reference in new issue
Block a user