타입 변경

This commit is contained in:
2023-08-14 15:34:55 +09:00
parent 884fb0080f
commit 9a734f9f4d

View File

@ -30,8 +30,8 @@ type channelConfig struct {
}
type chatConfig struct {
DefaultCapacity int64 `json:"default_capacity"`
Channels map[string]channelConfig `json:"channels"`
DefaultCapacity int64 `json:"default_capacity"`
Channels map[string]*channelConfig `json:"channels"`
}
type groupChat struct {
@ -148,7 +148,7 @@ func (gc *groupChat) ClientMessageReceived(sender *wshandler.Sender, mt wshandle
}
} else {
// 풀방
logger.Println("chatting channel is full :", chanid, size)
logger.Println("chatting channel is full :", chanid, size, cfg.Capacity)
}
} else {
logger.Println("chatting channel not valid :", chanid)