chore: ignore signing keys during WithLocalPublication publishing (#497)

This commit is contained in:
Viacheslav 2022-11-20 16:30:53 +02:00 committed by GitHub
parent 76124145d0
commit 972f19967f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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