From 0a7d8313b768f6db44440b2bd7dea47bd5451785 Mon Sep 17 00:00:00 2001 From: netbenix Date: Sun, 7 Nov 2021 21:46:27 +0100 Subject: [PATCH] Format fixing --- ProtoHandler/Handler.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ProtoHandler/Handler.go b/ProtoHandler/Handler.go index 67ab31d..5a77117 100644 --- a/ProtoHandler/Handler.go +++ b/ProtoHandler/Handler.go @@ -14,14 +14,14 @@ func createConnection() *grpc.ClientConn{ //TODO Remove Hardcoded addr conn, err := grpc.Dial("localhost:9090", grpc.WithInsecure()) - if err != nil{ + if err != nil { logger.Fatal(err) } return conn } -func createRegistryClient(conn *grpc.ClientConn) (proto.LpmRegistryClient, context.Context, context.CancelFunc){ +func createRegistryClient(conn *grpc.ClientConn) (proto.LpmRegistryClient, context.Context, context.CancelFunc) { lrc := proto.NewLpmRegistryClient(conn) ctx, cancel := context.WithTimeout(context.Background(), time.Second * 10) @@ -39,7 +39,7 @@ func SearchPackages(platform string, architecture []string, query string) []Pack defer cancel() res, connErr := client.Search(ctx, &proto.SearchRequest{Platform: platform, Architecture: architecture, Query: query}) - if connErr != nil{ + if connErr != nil { logger.Fatal(connErr) }