Skip to content

Commit

Permalink
fix: coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
damonto committed Jun 17, 2024
1 parent ecd7ea6 commit 532738d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/pkg/conversation/conversation.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ type conversation struct {
steps map[string]telebot.HandlerFunc
next string
}

type conversations struct {
bot *telebot.Bot
mutex sync.Mutex
Expand Down Expand Up @@ -52,7 +53,7 @@ func New(ctx telebot.Context) Conversation {
defer conversationsInstance.mutex.Unlock()
conversation := &conversation{
chatId: ctx.Chat().ID,
steps: make(map[string]telebot.HandlerFunc),
steps: make(map[string]telebot.HandlerFunc, 5),
}
conversationsInstance.conversations[ctx.Chat().ID] = conversation
return conversation
Expand Down

0 comments on commit 532738d

Please sign in to comment.