Constructor is more appropriate when comparing function signatures

This commit is contained in:
Franck Royer 2021-07-02 13:52:50 +10:00
parent c5419630fc
commit 354dcd66a5
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ export class WakuRelay extends Gossipsub {
*/ */
public async send(message: WakuMessage): Promise<void> { public async send(message: WakuMessage): Promise<void> {
const msg = message.encode(); const msg = message.encode();
await super.publish(this.pubsubTopic, Buffer.from(msg)); await super.publish(this.pubsubTopic, new Buffer(msg));
} }
/** /**