Skip to content
Snippets Groups Projects
Commit 0da07bea authored by Luke Hinds's avatar Luke Hinds
Browse files

Unify gRPC server naming var

parent d929cfe4
No related branches found
No related tags found
No related merge requests found
......@@ -71,7 +71,7 @@ var addCmd = &cobra.Command{
For more information, visit [domain]`,
Run: func(cmd *cobra.Command, args []string) {
log_rpc_server := viper.GetString("log_rpc_server")
logRpcServer := viper.GetString("log_rpc_server")
tLogID := viper.GetInt64("tlog_id")
linkfile := viper.GetString("linkfile")
......@@ -80,7 +80,7 @@ For more information, visit [domain]`,
defer cancel()
// Set up and test connection to rpc server
conn, err := grpc.DialContext(ctx, log_rpc_server, grpc.WithInsecure())
conn, err := grpc.DialContext(ctx, logRpcServer, grpc.WithInsecure())
if err != nil {
fmt.Println("Failed to connect to log server:", err)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment