Skip to content

Commit

Permalink
feat: make lint happy
Browse files Browse the repository at this point in the history
  • Loading branch information
LinZexiao committed Dec 1, 2022
1 parent cf07e2f commit 534acb4
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ require (
github.com/filecoin-project/go-jsonrpc v0.1.5
github.com/filecoin-project/go-state-types v0.9.8
github.com/filecoin-project/specs-actors/v5 v5.0.6
github.com/filecoin-project/venus v1.8.1-0.20221124060352-6507f0f062aa
github.com/filecoin-project/venus v1.8.1-0.20221129034316-64c6185bc2f3
github.com/filecoin-project/venus-auth v1.8.1-0.20221124050656-73734ff50be5
github.com/golang/mock v1.6.0
github.com/google/uuid v1.3.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -418,8 +418,8 @@ github.com/filecoin-project/specs-storage v0.4.1/go.mod h1:Z2eK6uMwAOSLjek6+sy0j
github.com/filecoin-project/storetheindex v0.3.5/go.mod h1:0r3d0kSpK63O6AvLr1CjAINLi+nWD49clzcnKV+GLpI=
github.com/filecoin-project/test-vectors/schema v0.0.5/go.mod h1:iQ9QXLpYWL3m7warwvK1JC/pTri8mnfEmKygNDqqY6E=
github.com/filecoin-project/venus v1.2.4/go.mod h1:hJULXHGAnWuq5S5KRtPkwbT8DqgM9II7NwyNU7t59D0=
github.com/filecoin-project/venus v1.8.1-0.20221124060352-6507f0f062aa h1:fm/Wx22MShN5fV6YKvN5v+pqbmdj+QOQbKlSra3WTuU=
github.com/filecoin-project/venus v1.8.1-0.20221124060352-6507f0f062aa/go.mod h1:AnTMHZERLQH9oOSGohEVJAwDfQAHcwLXQuAjjmHIvh4=
github.com/filecoin-project/venus v1.8.1-0.20221129034316-64c6185bc2f3 h1:dNpfEqmzyFjqWKJXa+GyNQ6v7lKBRwpBX9B7rOUzJMI=
github.com/filecoin-project/venus v1.8.1-0.20221129034316-64c6185bc2f3/go.mod h1:AnTMHZERLQH9oOSGohEVJAwDfQAHcwLXQuAjjmHIvh4=
github.com/filecoin-project/venus-auth v1.3.2/go.mod h1:m5Jog2GYxztwP7w3m/iJdv/V1/bTcAVU9rm/CbhxRQU=
github.com/filecoin-project/venus-auth v1.8.1-0.20221124050656-73734ff50be5 h1:y5Y6v5lhN3wKNYQkx5EqPh+8f31oe94iSoHIZz7Iado=
github.com/filecoin-project/venus-auth v1.8.1-0.20221124050656-73734ff50be5/go.mod h1:Ckj8F/iuSgXnCb9LvH0IiPR7swJZQAhabDOxVycLGWs=
Expand Down
1 change: 1 addition & 0 deletions models/repo/node_repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ type INodeProvider interface {
}

//go:generate mockgen -destination=../../mocks/mock_node_repo.go -package=mocks github.com/filecoin-project/venus-messager/models/repo NodeRepo

type NodeRepo interface {
CreateNode(node *types.Node) error
SaveNode(node *types.Node) error
Expand Down
1 change: 1 addition & 0 deletions publisher/publisher.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ var errAlreadyInMpool = fmt.Errorf("already in mpool: validation failure")
var errMinimumNonce = errors.New("minimum expected nonce")

//go:generate mockgen -destination=../mocks/mock_msg_publisher.go -package=mocks github.com/filecoin-project/venus-messager/publisher IMsgPublisher

type IMsgPublisher interface {
// PublishMessages publish messages to chain
PublishMessages(ctx context.Context, msgs []*types.SignedMessage) error
Expand Down
1 change: 1 addition & 0 deletions service/address_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
var errAddressNotExists = errors.New("address not exists")

//go:generate mockgen -destination=../mocks/mock_address_service.go -package=mocks github.com/filecoin-project/venus-messager/service IAddressService

type IAddressService interface {
SaveAddress(ctx context.Context, address *types.Address) (venusTypes.UUID, error)
UpdateNonce(ctx context.Context, addr address.Address, nonce uint64) error
Expand Down
1 change: 1 addition & 0 deletions service/message_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ const (

//go:generate mockgen -destination=../mocks/mock_message_service.go -package=mocks github.com/filecoin-project/venus-messager/service IMessageService
//go:generate sed -i s/"github.com\/filecoin-project\/venus\/venus-shared\/internal"/"github.com\/filecoin-project\/venus-messager\/mocks\/internal"/g ../mocks/mock_message_service.go

type IMessageService interface {
PushMessage(ctx context.Context, msg *venusTypes.Message, meta *types.SendSpec) (string, error)
PushMessageWithId(ctx context.Context, id string, msg *venusTypes.Message, meta *types.SendSpec) (string, error)
Expand Down

0 comments on commit 534acb4

Please sign in to comment.