타입 변경

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

View File

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