mirror of
https://github.com/logos-messaging/go-libp2p-pubsub.git
synced 2026-01-04 05:43:06 +00:00
chore: ignore signing keys during WithLocalPublication publishing (#497)
This commit is contained in:
parent
76124145d0
commit
972f19967f
2
topic.go
2
topic.go
@ -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()
|
key, pid = pub.customKey()
|
||||||
if key == nil {
|
if key == nil {
|
||||||
return ErrNilSignKey
|
return ErrNilSignKey
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user