diff options
author | Neil Alexander <neilalexander@users.noreply.github.com> | 2020-05-18 10:56:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-18 10:56:43 +0100 |
commit | dce4f436f77b71155483a47a6ad14da5c0ae5d6a (patch) | |
tree | 8a6202e52790878bdcd5e7f12205d2d179f86ac5 /cmd/dendrite-demo-libp2p/p2pdendrite.go | |
parent | bfb954519bdf172451d999ac4c654b3d15eff124 (diff) |
Add -api flag to monolith (#1044)
* Add flag for enabling HTTP APIs in monolith mode
* Flag -api
* Only start HTTP APIs if needed
Diffstat (limited to 'cmd/dendrite-demo-libp2p/p2pdendrite.go')
-rw-r--r-- | cmd/dendrite-demo-libp2p/p2pdendrite.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/dendrite-demo-libp2p/p2pdendrite.go b/cmd/dendrite-demo-libp2p/p2pdendrite.go index a9db3b39..831b5d7f 100644 --- a/cmd/dendrite-demo-libp2p/p2pdendrite.go +++ b/cmd/dendrite-demo-libp2p/p2pdendrite.go @@ -54,7 +54,7 @@ type P2PDendrite struct { // The componentName is used for logging purposes, and should be a friendly name // of the component running, e.g. SyncAPI. func NewP2PDendrite(cfg *config.Dendrite, componentName string) *P2PDendrite { - baseDendrite := basecomponent.NewBaseDendrite(cfg, componentName) + baseDendrite := basecomponent.NewBaseDendrite(cfg, componentName, false) ctx, cancel := context.WithCancel(context.Background()) |