Skip to content

Commit 3cd7bdb

Browse files
author
agaragiola
committed
Start ACA only when "aca.enabled = true"
Before start the ACA server the property "aca.enabled" is read and the ACA server is started only if "aca.enabled = true" avoiding resource consuming and confusing log in the console. Fixes: #2348 #2348 Change-Id: If90af171b1056b8c142db444b8476f68908159ea Signed-off-by: agaragiola <[email protected]>
1 parent 84431e3 commit 3cd7bdb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

membersrvc/server.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,9 @@ func main() {
9393
}
9494
srv := grpc.NewServer(opts...)
9595

96-
aca.Start(srv)
96+
if viper.GetBool("aca.enabled") {
97+
aca.Start(srv)
98+
}
9799
eca.Start(srv)
98100
tca.Start(srv)
99101
tlsca.Start(srv)

0 commit comments

Comments
 (0)