From 33dd6ef33ab796433e5af2072b214614807ed9ca Mon Sep 17 00:00:00 2001 From: gmuselli Date: Sat, 6 May 2017 11:34:01 +0200 Subject: [PATCH] put back uuid and != "" --- ocr_rpc_client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ocr_rpc_client.go b/ocr_rpc_client.go index 3defcae..4463e62 100644 --- a/ocr_rpc_client.go +++ b/ocr_rpc_client.go @@ -4,7 +4,7 @@ import ( "encoding/json" "fmt" "time" - + "github.com/nu7hatch/gouuid" "github.com/couchbaselabs/logg" "github.com/streadway/amqp" ) @@ -86,7 +86,7 @@ func (c *OcrRpcClient) DecodeImage(ocrRequest OcrRequest) (OcrResult, error) { // any preprocessors. if rabbitmq isn't in same data center // as open-ocr, it will be expensive in terms of bandwidth // to have image binary in messages - if ocrRequest.ImgBytes == nil && ocrRequest.ImgBase64 == nil { + if ocrRequest.ImgBytes == nil && ocrRequest.ImgBase64 == "" { // if we already have image bytes, ignore image url err = ocrRequest.downloadImgUrl() if err != nil {