Skip to content

Commit

Permalink
fix: fixed go linter issues
Browse files Browse the repository at this point in the history
Signed-off-by: Sanskarzz <sanskar.gur@gmail.com>
  • Loading branch information
Sanskarzz authored and eddycharly committed Mar 13, 2024
1 parent 0cc7979 commit 84ece7a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ import (
func startHTTPserver() {
http.HandleFunc("/", handler)

http.ListenAndServe(":8080", nil)
err := http.ListenAndServe(":8080", nil)
if err != nil {
log.Fatal("ListenAndServe: ", err)
}
fmt.Println("Starting HTTP server on Port 8080")
}

Expand All @@ -28,7 +31,9 @@ func startGRPCServer() {
}
grpcServer := grpc.NewServer()
fmt.Println("Starting GRPC server on Port 9090")
grpcServer.Serve(lis)
if err := grpcServer.Serve(lis); err != nil {
log.Fatalf("failed to serve: %v", err)
}

}

Expand Down

0 comments on commit 84ece7a

Please sign in to comment.