Skip to content

Commit

Permalink
put back uuid and != ""
Browse files Browse the repository at this point in the history
  • Loading branch information
gmuselli committed May 6, 2017
1 parent a28c4bc commit 33dd6ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ocr_rpc_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/json"
"fmt"
"time"

"github.com/nu7hatch/gouuid"
"github.com/couchbaselabs/logg"
"github.com/streadway/amqp"
)
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 33dd6ef

Please sign in to comment.