Skip to content

Commit

Permalink
fix: 优化Bot风控无法创建频道重试逻辑
Browse files Browse the repository at this point in the history
  • Loading branch information
deanxv committed Mar 9, 2024
1 parent 6bc0ae4 commit bca01ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion discord/channel.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ func CreateChannelWithRetry(c *gin.Context, guildID, channelName string, channel
}
// 成功创建频道,返回结果
return result.ID, nil
case <-time.After(10 * time.Second):
case <-time.After(60 * time.Second):
common.LogWarn(c, "Create channel timed out, retrying...")
}
}
Expand Down

0 comments on commit bca01ea

Please sign in to comment.