Skip to content

Commit

Permalink
fix: fix linter error (staticcheck)
Browse files Browse the repository at this point in the history
  • Loading branch information
bilalcaliskan committed Jun 1, 2024
1 parent 2c87083 commit f93c690
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/cli/add/add.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ to quickly create a Cobra application.`,
},
RunE: func(cmd *cobra.Command, args []string) error {
// Set up a connection to the server.
conn, err := grpc.Dial("localhost:50051", grpc.WithBlock(), grpc.WithTransportCredentials(insecure.NewCredentials()))
cl, err := grpc.NewClient("localhost:50051", grpc.WithTransportCredentials(insecure.NewCredentials()))
if err != nil {
log.Fatalf("did not connect: %v", err)
}
defer conn.Close()
c := pb.NewRouteManagerClient(conn)
defer cl.Close()
c := pb.NewRouteManagerClient(cl)

// Contact the server and print out its response.
ctx, cancel := context.WithTimeout(context.Background(), time.Second)
Expand Down

0 comments on commit f93c690

Please sign in to comment.