-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Feat/debug accept message error #210
base: master
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## master #210 +/- ##
==========================================
+ Coverage 64.82% 65.00% +0.17%
==========================================
Files 25 25
Lines 2607 2626 +19
==========================================
+ Hits 1690 1707 +17
- Misses 573 575 +2
Partials 344 344
Continue to review full report at Codecov.
|
impl/events.go
Outdated
@@ -432,6 +448,10 @@ func (m *manager) validateVoucher( | |||
} | |||
|
|||
result, err := validatorFunc(isRestart, sender, vouch, baseCid, stor) | |||
if isPull { | |||
log.Infof("\n ValidatePull, result=%s, err=%s", result, err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Not sure why we have \n inside a log.Infof
transport/graphsync/graphsync.go
Outdated
@@ -592,7 +592,9 @@ func (t *Transport) gsReqRecdHook(p peer.ID, request graphsync.RequestData, hook | |||
// when a DT request comes in on graphsync, it's a pull | |||
chid = datatransfer.ChannelID{ID: msg.TransferID(), Initiator: p, Responder: t.peerID} | |||
request := msg.(datatransfer.Request) | |||
log.Debugf("will validate recieved gs request, chid=%s, request=%+v", chid, request) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
log.Debugf("will validate recieved gs request, chid=%s, request=%+v", chid, request) | |
log.Debugf("will validate received gs request, chid=%s, request=%+v", chid, request) |
transport/graphsync/graphsync.go
Outdated
return nil, t.events.OnResponseReceived(chid, dtResponse) | ||
err = t.events.OnResponseReceived(chid, dtResponse) | ||
if err != nil { | ||
log.Errorf("\n error receieved from OnResponseReceived is %s", err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment here - why \n
at the start?
impl/events.go
Outdated
if !response.EmptyVoucherResult() { | ||
log.Debug("processing non-empty voucher result") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe add the chid
as part of this logline, so that we can correlate to which channel this refers?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added a few comments, that it'd be good to be addressed, but overall lgtm.
To help debug the missing
Accept
messages on dealbot clients.