feat(gateway): extract ChatContract service

This commit is contained in:
sam committed 2026-09-05 23:06:16 +10:00
1 parent 34cb25f130
commit 0a6496d2cd
20 files changed
+525 -79

No files matched your search

+5 -1
View File
@@ -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
}