Skip to content

Commit e5cdde2

Browse files
committed
Limit function scope
1 parent a6284ee commit e5cdde2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

service/arangod_config_builder.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ var (
5252
)
5353
)
5454

55-
// FixupEndpointURLScheme changes endpoint URL schemes used by Starter to ones used by arangodb.
55+
// fixupEndpointURLSchemeForArangod changes endpoint URL schemes used by Starter to ones used by arangodb.
5656
// E.g. "http://localhost:8529" -> "tcp://localhost:8529"
57-
func FixupEndpointURLScheme(u string) string {
57+
func fixupEndpointURLSchemeForArangod(u string) string {
5858
return urlFixer.Replace(u)
5959
}
6060

@@ -232,7 +232,7 @@ func createArangodArgs(log zerolog.Logger, config Config, clusterConfig ClusterC
232232
if serverType == ServerTypeCoordinator || serverType == ServerTypeResilientSingle {
233233
if config.AdvertisedEndpoint != "" {
234234
options = append(options,
235-
optionPair{"--cluster.my-advertised-endpoint", FixupEndpointURLScheme(config.AdvertisedEndpoint)},
235+
optionPair{"--cluster.my-advertised-endpoint", fixupEndpointURLSchemeForArangod(config.AdvertisedEndpoint)},
236236
)
237237
}
238238
}

0 commit comments

Comments
 (0)