Skip to content

Commit a6284ee

Browse files
committed
Simplified code
1 parent dc4d1f9 commit a6284ee

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

service/arangod_config_builder.go

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -215,11 +215,6 @@ func createArangodArgs(log zerolog.Logger, config Config, clusterConfig ClusterC
215215
optionPair{"--foxx.queues", "true"},
216216
optionPair{"--server.statistics", "true"},
217217
)
218-
if config.AdvertisedEndpoint != "" {
219-
options = append(options,
220-
optionPair{"--cluster.my-advertised-endpoint", FixupEndpointURLScheme(config.AdvertisedEndpoint)},
221-
)
222-
}
223218
case ServerTypeSingle:
224219
options = append(options,
225220
optionPair{"--foxx.queues", "true"},
@@ -233,6 +228,8 @@ func createArangodArgs(log zerolog.Logger, config Config, clusterConfig ClusterC
233228
optionPair{"--cluster.my-address", myTCPURL},
234229
optionPair{"--cluster.my-role", "SINGLE"},
235230
)
231+
}
232+
if serverType == ServerTypeCoordinator || serverType == ServerTypeResilientSingle {
236233
if config.AdvertisedEndpoint != "" {
237234
options = append(options,
238235
optionPair{"--cluster.my-advertised-endpoint", FixupEndpointURLScheme(config.AdvertisedEndpoint)},

0 commit comments

Comments
 (0)