Fixed some stupid shit

This commit is contained in:
netbenix 2021-11-06 22:40:56 +01:00
parent 4f66d9c6da
commit 70d0502a95

View file

@ -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)
}