Skip to content

Commit f74f4ef

Browse files
committed
fix: correct global bucket for guilds channels
1 parent f17e15b commit f74f4ef

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

lib/bucketpath.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,10 @@ func GetOptimisticBucketPath(url string, method string) string {
105105
bucket.WriteString("/!")
106106
currMajor = MajorInvites
107107
case MajorGuilds:
108-
// guilds/:guildId/channels share the same bucket for all guilds
109-
if numParts == 3 && parts[2] == "channels" {
110-
return "/" + MajorGuilds + "/!/channels"
111-
}
108+
// commented because guilds/:guildId/channels DONT share the same bucket for all guilds
109+
// if numParts == 3 && parts[2] == "channels" {
110+
// return "/" + MajorGuilds + "/!/channels"
111+
// }
112112
fallthrough
113113
case MajorInteractions:
114114
if numParts == 4 && parts[3] == "callback" {

0 commit comments

Comments
 (0)