Move index name to config only and add default value

This commit is contained in:
Mak Muftic
2021-09-24 13:43:25 +02:00
parent 22bbb113e7
commit 4438c4bd87
4 changed files with 14 additions and 12 deletions
+1
View File
@@ -377,6 +377,7 @@ func GossipSub(in GossipIn) (service *pubsub.PubSub, err error) {
if in.Cfg.ElasticSearchTracer != "" {
elasticSearchTransport, err := tracer.NewElasticSearchTransport(
in.Cfg.ElasticSearchTracer,
in.Cfg.ElasticSearchIndex,
)
if err != nil {
return nil, err