Skip to content

Commit

Permalink
Increase topic length to allow len(uuid+xid+xid). (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
koenbollen committed Mar 15, 2023
1 parent dce5e45 commit fbfacf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/signaling/stores/postgres.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func (s *PostgresStore) Subscribe(ctx context.Context, topic string, callback Su
}

func (s *PostgresStore) Publish(ctx context.Context, topic string, data []byte) error {
if len(topic) > 64 {
if len(topic) > 76 {
return fmt.Errorf("topic too long")
}
if strings.ContainsRune(topic, ':') {
Expand Down

0 comments on commit fbfacf2

Please sign in to comment.