Skip to content

Commit

Permalink
Start ACA only when "aca.enabled = true"
Browse files Browse the repository at this point in the history
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 <garagiol@ar.ibm.com>
  • Loading branch information
agaragiola committed Aug 2, 2016
1 parent 84431e3 commit 3cd7bdb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion membersrvc/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ func main() {
}
srv := grpc.NewServer(opts...)

aca.Start(srv)
if viper.GetBool("aca.enabled") {
aca.Start(srv)
}
eca.Start(srv)
tca.Start(srv)
tlsca.Start(srv)
Expand Down

0 comments on commit 3cd7bdb

Please sign in to comment.