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
a3aedb96
Unverified
Commit
a3aedb96
authored
Sep 26, 2020
by
Ralph Pichler
Committed by
GitHub
Sep 26, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove duplicate log and demote to trace (#755)
parent
4b91ba20
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
pricing.go
pkg/pricing/pricing.go
+3
-3
No files found.
pkg/pricing/pricing.go
View file @
a3aedb96
...
...
@@ -73,19 +73,19 @@ func (s *Service) handler(ctx context.Context, p p2p.Peer, stream p2p.Stream) (e
_
=
stream
.
FullClose
()
}
}()
s
.
logger
.
Infof
(
"receiving payment threshold announcement from peer %v"
,
p
.
Address
)
var
req
pb
.
AnnouncePaymentThreshold
if
err
:=
r
.
ReadMsg
(
&
req
);
err
!=
nil
{
s
.
logger
.
Debugf
(
"error receiving payment threshold announcement from peer %v"
,
p
.
Address
)
return
fmt
.
Errorf
(
"read request from peer %v: %w"
,
p
.
Address
,
err
)
}
s
.
logger
.
Info
f
(
"received payment threshold announcement from peer %v of %d"
,
p
.
Address
,
req
.
PaymentThreshold
)
s
.
logger
.
Trace
f
(
"received payment threshold announcement from peer %v of %d"
,
p
.
Address
,
req
.
PaymentThreshold
)
return
s
.
paymentThresholdObserver
.
NotifyPaymentThreshold
(
p
.
Address
,
req
.
PaymentThreshold
)
}
func
(
s
*
Service
)
init
(
ctx
context
.
Context
,
p
p2p
.
Peer
)
error
{
s
.
logger
.
Info
f
(
"sending payment threshold announcement to peer %v"
,
p
.
Address
)
s
.
logger
.
Trace
f
(
"sending payment threshold announcement to peer %v"
,
p
.
Address
)
err
:=
s
.
AnnouncePaymentThreshold
(
ctx
,
p
.
Address
,
s
.
paymentThreshold
)
if
err
!=
nil
{
s
.
logger
.
Warningf
(
"error sending payment threshold announcement to peer %v"
,
p
.
Address
)
...
...
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