Remove default value

Default value is handled one layer above.
This commit is contained in:
Franck Royer 2021-08-19 16:42:37 +10:00
parent 60290e8d84
commit 026aaaf67e
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
1 changed files with 1 additions and 5 deletions

View File

@ -2,16 +2,12 @@ import { Reader } from 'protobufjs/minimal';
import { v4 as uuid } from 'uuid'; import { v4 as uuid } from 'uuid';
import * as proto from '../../proto/waku/v2/light_push'; import * as proto from '../../proto/waku/v2/light_push';
import { DefaultPubSubTopic } from '../waku';
import { WakuMessage } from '../waku_message'; import { WakuMessage } from '../waku_message';
export class PushRPC { export class PushRPC {
public constructor(public proto: proto.PushRPC) {} public constructor(public proto: proto.PushRPC) {}
static createRequest( static createRequest(message: WakuMessage, pubsubTopic: string): PushRPC {
message: WakuMessage,
pubsubTopic: string = DefaultPubSubTopic
): PushRPC {
return new PushRPC({ return new PushRPC({
requestId: uuid(), requestId: uuid(),
request: { request: {