Skip to content

Commit 2ee184c

Browse files
Update consumer grp hash length
1 parent 4626ee1 commit 2ee184c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

event-gateway/gateway-runtime/internal/connectors/receiver/websub/consumer_manager.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,8 @@ func (cm *ConsumerManager) createConsumer(groupID string, topics []string, callb
218218
}
219219

220220
// consumerGroupID generates a unique, safe consumer group ID for a callback URL.
221-
// Format: {prefix}-websub-{sha256(callbackURL)[:16]}
221+
// Format: {prefix}-websub-{sha256(callbackURL)[:32]}
222222
func (cm *ConsumerManager) consumerGroupID(callbackURL string) string {
223223
h := sha256.Sum256([]byte(callbackURL))
224-
return cm.groupPrefix + "-websub-" + hex.EncodeToString(h[:])[:16]
224+
return cm.groupPrefix + "-websub-" + hex.EncodeToString(h[:])[:32]
225225
}

0 commit comments

Comments
 (0)