Merge pull request #29 from mhchia/fix/dht-typo

Change `requestContext` to `d.requestContext`
This commit is contained in:
vyzo 2018-11-27 09:54:03 +02:00 committed by GitHub
commit 8849db87a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

3
dht.go
View File

@ -2,7 +2,6 @@ package p2pd
import (
"context"
"time"
pb "github.com/libp2p/go-libp2p-daemon/pb"
@ -287,7 +286,7 @@ func (d *Daemon) doDHTProvide(req *pb.DHTRequest) (*pb.Response, <-chan *pb.DHTR
}
func (d *Daemon) dhtRequestContext(req *pb.DHTRequest) (context.Context, func()) {
return requestContext(req.GetTimeout())
return d.requestContext(req.GetTimeout())
}
func dhtResponseBegin() *pb.DHTResponse {