voicechat 옮김

This commit is contained in:
2024-01-08 20:25:49 +09:00
parent a503fe7f30
commit 3f1e9ef5c9

View File

@ -123,13 +123,6 @@ func (tv *Tavern) prepare(ctx context.Context) error {
tv.httpApiBorker.AddHandler(gocommon.MakeHttpApiHandler(instant, "instant"))
tv.wsh.AddHandler(wshandler.MakeWebsocketApiHandler(instant, "instant"))
voice := new(groupVoice)
if err := voice.Initialize(tv, ctx); err != nil {
return logger.ErrorWithCallStack(err)
}
tv.httpApiBorker.AddHandler(gocommon.MakeHttpApiHandler(voice, "voice"))
tv.wsh.AddHandler(wshandler.MakeWebsocketApiHandler(voice, "voice"))
ccu = metric.NewMetric(metric.MetricGuage, "concurrent_user", "concurrent user count", map[string]string{"game": "lobby"})
return nil
}