Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mybee
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
mybee
Commits
e32b3525
Unverified
Commit
e32b3525
authored
Dec 14, 2020
by
acud
Committed by
GitHub
Dec 14, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor deepsource code hygiene fixes (#1049)
parent
daecae2b
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
8 deletions
+8
-8
accounting.go
pkg/accounting/accounting.go
+2
-2
multiresolver.go
pkg/resolver/multiresolver/multiresolver.go
+1
-1
cashout.go
pkg/settlement/swap/chequebook/cashout.go
+1
-1
swap_test.go
pkg/settlement/swap/swap_test.go
+1
-1
tracing_test.go
pkg/tracing/tracing_test.go
+3
-3
No files found.
pkg/accounting/accounting.go
View file @
e32b3525
...
...
@@ -93,8 +93,8 @@ var (
// NewAccounting creates a new Accounting instance with the provided options.
func
NewAccounting
(
PaymentThreshold
uint64
,
PaymentTolerance
uint64
,
PaymentThreshold
,
PaymentTolerance
,
EarlyPayment
uint64
,
Logger
logging
.
Logger
,
Store
storage
.
StateStorer
,
...
...
pkg/resolver/multiresolver/multiresolver.go
View file @
e32b3525
...
...
@@ -184,7 +184,7 @@ func getTLD(name string) string {
return
path
.
Ext
(
strings
.
ToLower
(
name
))
}
func
(
mr
*
MultiResolver
)
connectENSClient
(
tld
string
,
address
string
,
endpoint
string
)
{
func
(
mr
*
MultiResolver
)
connectENSClient
(
tld
,
address
,
endpoint
string
)
{
log
:=
mr
.
logger
if
address
==
""
{
...
...
pkg/settlement/swap/chequebook/cashout.go
View file @
e32b3525
...
...
@@ -95,7 +95,7 @@ func cashoutActionKey(chequebook common.Address) string {
}
// CashCheque sends a cashout transaction for the last cheque of the chequebook
func
(
s
*
cashoutService
)
CashCheque
(
ctx
context
.
Context
,
chequebook
common
.
Address
,
recipient
common
.
Address
)
(
common
.
Hash
,
error
)
{
func
(
s
*
cashoutService
)
CashCheque
(
ctx
context
.
Context
,
chequebook
,
recipient
common
.
Address
)
(
common
.
Hash
,
error
)
{
cheque
,
err
:=
s
.
chequeStore
.
LastCheque
(
chequebook
)
if
err
!=
nil
{
return
common
.
Hash
{},
err
...
...
pkg/settlement/swap/swap_test.go
View file @
e32b3525
...
...
@@ -80,7 +80,7 @@ type cashoutMock struct {
cashoutStatus
func
(
ctx
context
.
Context
,
chequebookAddress
common
.
Address
)
(
*
chequebook
.
CashoutStatus
,
error
)
}
func
(
m
*
cashoutMock
)
CashCheque
(
ctx
context
.
Context
,
chequebook
common
.
Address
,
recipient
common
.
Address
)
(
common
.
Hash
,
error
)
{
func
(
m
*
cashoutMock
)
CashCheque
(
ctx
context
.
Context
,
chequebook
,
recipient
common
.
Address
)
(
common
.
Hash
,
error
)
{
return
m
.
cashCheque
(
ctx
,
chequebook
,
recipient
)
}
func
(
m
*
cashoutMock
)
CashoutStatus
(
ctx
context
.
Context
,
chequebookAddress
common
.
Address
)
(
*
chequebook
.
CashoutStatus
,
error
)
{
...
...
pkg/tracing/tracing_test.go
View file @
e32b3525
...
...
@@ -8,7 +8,7 @@ import (
"context"
"fmt"
"io"
"
os
"
"
io/ioutil
"
"testing"
"github.com/ethersphere/bee/pkg/logging"
...
...
@@ -130,7 +130,7 @@ func TestStartSpanFromContext_logger(t *testing.T) {
tracer
,
closer
:=
newTracer
(
t
)
defer
closer
.
Close
()
span
,
logger
,
_
:=
tracer
.
StartSpanFromContext
(
context
.
Background
(),
"some-operation"
,
logging
.
New
(
os
.
Stdout
,
5
))
span
,
logger
,
_
:=
tracer
.
StartSpanFromContext
(
context
.
Background
(),
"some-operation"
,
logging
.
New
(
ioutil
.
Discard
,
0
))
defer
span
.
Finish
()
wantTraceID
:=
span
.
Context
()
.
(
jaeger
.
SpanContext
)
.
TraceID
()
...
...
@@ -169,7 +169,7 @@ func TestNewLoggerWithTraceID(t *testing.T) {
span
,
_
,
ctx
:=
tracer
.
StartSpanFromContext
(
context
.
Background
(),
"some-operation"
,
nil
)
defer
span
.
Finish
()
logger
:=
tracing
.
NewLoggerWithTraceID
(
ctx
,
logging
.
New
(
os
.
Stdout
,
5
))
logger
:=
tracing
.
NewLoggerWithTraceID
(
ctx
,
logging
.
New
(
ioutil
.
Discard
,
0
))
wantTraceID
:=
span
.
Context
()
.
(
jaeger
.
SpanContext
)
.
TraceID
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment