File tree Expand file tree Collapse file tree 5 files changed +5
-16
lines changed
adapters/dataproviders/database/mongo Expand file tree Collapse file tree 5 files changed +5
-16
lines changed Original file line number Diff line number Diff line change @@ -2,9 +2,8 @@ package mongo
22
33import (
44 "context"
5- "time"
6-
75 log "github.com/sirupsen/logrus"
6+ "time"
87)
98
109const (
Original file line number Diff line number Diff line change @@ -2,16 +2,15 @@ package mongo_test
22
33import (
44 "context"
5- "sync"
6- "testing"
7- "time"
8-
95 "github.com/rsksmart/liquidity-provider-server/internal/adapters/dataproviders/database/mongo"
106 "github.com/rsksmart/liquidity-provider-server/test"
117 "github.com/rsksmart/liquidity-provider-server/test/mocks"
128 "github.com/stretchr/testify/assert"
139 "github.com/stretchr/testify/mock"
1410 "go.mongodb.org/mongo-driver/mongo/readpref"
11+ "sync"
12+ "testing"
13+ "time"
1514)
1615
1716func TestNewConnection (t * testing.T ) {
Original file line number Diff line number Diff line change @@ -4,11 +4,10 @@ import (
44 "encoding/hex"
55 "errors"
66 "fmt"
7- "math/big"
8-
97 "github.com/rsksmart/liquidity-provider-server/internal/entities"
108 "github.com/rsksmart/liquidity-provider-server/internal/entities/utils"
119 log "github.com/sirupsen/logrus"
10+ "math/big"
1211)
1312
1413type AcceptedQuote struct {
Original file line number Diff line number Diff line change @@ -119,10 +119,6 @@ type RetainedPeginQuote struct {
119119 RegisterPeginTxHash string `json:"registerPeginTxHash" bson:"register_pegin_tx_hash"`
120120}
121121
122- func (r RetainedPeginQuote ) GetQuoteHash () string {
123- return r .QuoteHash
124- }
125-
126122type WatchedPeginQuote struct {
127123 PeginQuote PeginQuote
128124 RetainedQuote RetainedPeginQuote
Original file line number Diff line number Diff line change @@ -132,10 +132,6 @@ type RetainedPegoutQuote struct {
132132 BridgeRefundTxHash string `json:"BridgeRefundTxHash" bson:"bridge_refund_tx_hash"`
133133}
134134
135- func (r RetainedPegoutQuote ) GetQuoteHash () string {
136- return r .QuoteHash
137- }
138-
139135type WatchedPegoutQuote struct {
140136 PegoutQuote PegoutQuote
141137 RetainedQuote RetainedPegoutQuote
You can’t perform that action at this time.
0 commit comments