Skip to content
This repository was archived by the owner on Mar 9, 2022. It is now read-only.

Commit 070b449

Browse files
authored
feat: pubsub and ipns pubsub flags (#145)
* enable pubsub and namesys pubsub to be enable via config * rename Ipns key, switch type to Flag * omit the fields if empty
1 parent 92f673a commit 070b449

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

ipns.go

+3
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,7 @@ type Ipns struct {
55
RecordLifetime string
66

77
ResolveCacheSize int
8+
9+
// Enable namesys pubsub (--enable-namesys-pubsub)
10+
UsePubsub Flag `json:",omitempty"`
811
}

pubsub.go

+3
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,7 @@ type PubsubConfig struct {
88
// DisableSigning disables message signing. Message signing is *enabled*
99
// by default.
1010
DisableSigning bool
11+
12+
// Enable pubsub (--enable-pubsub-experiment)
13+
Enabled Flag `json:",omitempty"`
1114
}

0 commit comments

Comments
 (0)