Skip to content

Commit

Permalink
fix(core): event.go nodeapi.go
Browse files Browse the repository at this point in the history
Signed-off-by: Godefroy Ponsinet <godefroy.ponsinet@outlook.com>
  • Loading branch information
90dy committed Dec 11, 2018
1 parent 82b3b9f commit dffeead
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion core/go.mod
Expand Up @@ -123,7 +123,7 @@ require (
github.com/oxtoacart/bpool v0.0.0-20150712133111-4e1c5567d7c2 // indirect
github.com/pkg/errors v0.8.0
github.com/rs/cors v1.6.0
github.com/satori/go.uuid v1.2.0
github.com/satori/go.uuid v1.2.0 // indirect
github.com/sergi/go-diff v1.0.0 // indirect
github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d // indirect
github.com/smartystreets/goconvey v0.0.0-20180222194500-ef6db91d284a
Expand Down
2 changes: 0 additions & 2 deletions core/node/event.go
Expand Up @@ -14,8 +14,6 @@ import (
opentracing "github.com/opentracing/opentracing-go"
"github.com/pkg/errors"
"go.uber.org/zap"

"go.uber.org/zap"
)

func (n *Node) AsyncWait(ctx context.Context) {
Expand Down
3 changes: 1 addition & 2 deletions core/node/nodeapi.go
Expand Up @@ -11,7 +11,6 @@ import (
"berty.tech/core/pkg/tracing"
bsql "berty.tech/core/sql"
"github.com/jinzhu/gorm"
"github.com/opentracing/opentracing-go"
opentracing "github.com/opentracing/opentracing-go"
"github.com/pkg/errors"
"google.golang.org/grpc"
Expand Down Expand Up @@ -360,7 +359,7 @@ func (n *Node) Contact(ctx context.Context, input *node.ContactInput) (*entity.C

sql := n.sql(ctx)
output := &entity.Contact{}
if err := n.sql.Where(input.Filter).First(output).Error; err != nil {
if err := sql.Where(input.Filter).First(output).Error; err != nil {
return nil, errorcodes.ErrDb.Wrap(err)
}

Expand Down

0 comments on commit dffeead

Please sign in to comment.