diff --git a/core/group_chat.go b/core/group_chat.go index 22cb6f8..3c40e98 100644 --- a/core/group_chat.go +++ b/core/group_chat.go @@ -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)