Skip to content

Commit

Permalink
add fix to search result routes
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroxbt committed Mar 31, 2022
1 parent ab7cd82 commit b60ac4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion external/libp2p-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ class Libp2pService {
this.logger.info(`Sending response from ${this.config.id} to ${remotePeerId}: event=${eventName};`);
const result = await handler(data);
if (Date.now() <= timestamp + timeout) {
await this.sendMessage(`${eventName}/result/1.0.0`, result, handlerProps.connection.remotePeer);
await this.sendMessage(`${eventName}/result`, result, handlerProps.connection.remotePeer);
} else {
this.logger.warn(`Too late to send response from ${this.config.id} to ${remotePeerId}: event=${eventName};`);
}
Expand Down

0 comments on commit b60ac4f

Please sign in to comment.