Change json config naming
This commit is contained in:
parent
0c390d12f7
commit
9332b9f399
@ -528,7 +528,7 @@ Type: Array of multiaddress peerinfo strings, must include peerid (/p2p/12D3K...
|
||||
Comment: ``,
|
||||
},
|
||||
{
|
||||
Name: "JsonTracerFile",
|
||||
Name: "JsonTracer",
|
||||
Type: "string",
|
||||
|
||||
Comment: ``,
|
||||
@ -537,6 +537,12 @@ Type: Array of multiaddress peerinfo strings, must include peerid (/p2p/12D3K...
|
||||
Name: "ElasticSearchTracer",
|
||||
Type: "string",
|
||||
|
||||
Comment: ``,
|
||||
},
|
||||
{
|
||||
Name: "TracerSourceAuth",
|
||||
Type: "string",
|
||||
|
||||
Comment: ``,
|
||||
},
|
||||
},
|
||||
|
@ -309,7 +309,7 @@ type Pubsub struct {
|
||||
DirectPeers []string
|
||||
IPColocationWhitelist []string
|
||||
RemoteTracer string
|
||||
JsonTracerFile string
|
||||
JsonTracer string
|
||||
ElasticSearchTracer string
|
||||
TracerSourceAuth string
|
||||
}
|
||||
|
@ -366,8 +366,8 @@ func GossipSub(in GossipIn) (service *pubsub.PubSub, err error) {
|
||||
100)))
|
||||
|
||||
var transports []tracer.TracerTransport
|
||||
if in.Cfg.JsonTracerFile != "" {
|
||||
jsonTransport, err := tracer.NewJsonTracerTransport(in.Cfg.JsonTracerFile)
|
||||
if in.Cfg.JsonTracer != "" {
|
||||
jsonTransport, err := tracer.NewJsonTracerTransport(in.Cfg.JsonTracer)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user