fix pubsub broadcast validation error
This commit is contained in:
@@ -211,7 +211,7 @@ func CreateVault(ID string, storageHandler *StorageHandler) (*Vault, error) {
|
|||||||
ID, //== topicName
|
ID, //== topicName
|
||||||
func(ctx context.Context, id peer.ID, msg *pubsub.Message) bool {
|
func(ctx context.Context, id peer.ID, msg *pubsub.Message) bool {
|
||||||
if id == storageHandler.Host.ID() {
|
if id == storageHandler.Host.ID() {
|
||||||
return false
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
Logger.Debugf("PubSubmsg TOPIC: %s, PEER: %s\n", ID, id)
|
Logger.Debugf("PubSubmsg TOPIC: %s, PEER: %s\n", ID, id)
|
||||||
|
|||||||
Reference in New Issue
Block a user