Fixed some stupid shit
This commit is contained in:
parent
4f66d9c6da
commit
70d0502a95
1 changed files with 1 additions and 3 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue