diff --git a/Commands/SearchCommand.go b/Commands/SearchCommand.go index ba34d20..b5c286f 100644 --- a/Commands/SearchCommand.go +++ b/Commands/SearchCommand.go @@ -24,7 +24,7 @@ func NewSearchCommand() *cli.Command { //TODO Remove Hardcoded addr conn, err := grpc.Dial("faf-notebook2:9090", grpc.WithInsecure()) if err != nil{ - logger.Error(err) + logger.Fatal(err) } defer conn.Close() @@ -34,9 +34,7 @@ func NewSearchCommand() *cli.Command { ctx, cancel := context.WithTimeout(context.Background(), time.Second) defer cancel() - start := time.Now() r, connErr := lrc.Search(ctx, &proto.SearchRequest {Platform: "noot", Architecture: nil, Query: "Schnitzel"}) - fmt.Printf("%d", time.Since(start).Milliseconds()) if connErr != nil { logger.Fatal(connErr) }