Skip to content

Commit

Permalink
chore: ignore signing keys during WithLocalPublication publishing (#497)
Browse files Browse the repository at this point in the history
  • Loading branch information
vgonkivs authored Nov 20, 2022
1 parent 7612414 commit 972f199
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion topic.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ func (t *Topic) Publish(ctx context.Context, data []byte, opts ...PubOpt) error
}
}

if pub.customKey != nil {
if pub.customKey != nil && !pub.local {
key, pid = pub.customKey()
if key == nil {
return ErrNilSignKey
Expand Down

0 comments on commit 972f199

Please sign in to comment.