Skip to content

Commit

Permalink
go-ipfs-config: feat: pubsub and ipns pubsub flags (ipfs#145)
Browse files Browse the repository at this point in the history
* enable pubsub and namesys pubsub to be enable via config
* rename Ipns key, switch type to Flag
* omit the fields if empty
  • Loading branch information
jwh committed Oct 27, 2021
1 parent d01add6 commit 0c566c7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/ipns.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,7 @@ type Ipns struct {
RecordLifetime string

ResolveCacheSize int

// Enable namesys pubsub (--enable-namesys-pubsub)
UsePubsub Flag `json:",omitempty"`
}
3 changes: 3 additions & 0 deletions config/pubsub.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,7 @@ type PubsubConfig struct {
// DisableSigning disables message signing. Message signing is *enabled*
// by default.
DisableSigning bool

// Enable pubsub (--enable-pubsub-experiment)
Enabled Flag `json:",omitempty"`
}

0 comments on commit 0c566c7

Please sign in to comment.