Fix up host ports and env variables

This commit is contained in:
Marc Di Luzio 2020-06-13 11:17:52 +01:00
parent 7c830f58be
commit 98249948a1
8 changed files with 38 additions and 55 deletions

View file

@ -15,7 +15,6 @@ import (
"google.golang.org/grpc"
)
var address = os.Getenv("HOST_ADDRESS")
var data = os.Getenv("DATA_PATH")
// accountantServer is the internal object to manage the requests
@ -82,8 +81,9 @@ func (a *accountantServer) GetValue(_ context.Context, in *accounts.DataKey) (*a
// main
func main() {
// Verify the input
var address = os.Getenv("ROVE_ACCOUNTANT_GRPC")
if len(address) == 0 {
log.Fatal("No address set with $HOST_ADDRESS")
log.Fatal("No address set with $ROVE_ACCOUNTANT_GRPC")
}
persistence.SetPath(data)