mirror of https://github.com/waku-org/js-waku.git
Remove default value
Default value is handled one layer above.
This commit is contained in:
parent
60290e8d84
commit
026aaaf67e
|
@ -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: {
|
||||||
|
|
Loading…
Reference in New Issue