Skip to content

Commit

Permalink
Merge pull request ipfs#112 from dirkmc/fix/validation-record
Browse files Browse the repository at this point in the history
Just pass the record object to validation functions
  • Loading branch information
Stebalien authored Jan 20, 2018
2 parents d2378be + ed147fe commit 3a13ac7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dht_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func setupDHT(ctx context.Context, t *testing.T, client bool) *IpfsDHT {
}

d.Validator["v"] = &record.ValidChecker{
Func: func(string, []byte) error {
Func: func(*record.ValidationRecord) error {
return nil
},
Sign: false,
Expand Down Expand Up @@ -150,7 +150,7 @@ func TestValueGetSet(t *testing.T) {
defer dhtB.host.Close()

vf := &record.ValidChecker{
Func: func(string, []byte) error { return nil },
Func: func(*record.ValidationRecord) error { return nil },
Sign: false,
}
nulsel := func(_ string, bs [][]byte) (int, error) { return 0, nil }
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@
},
{
"author": "whyrusleeping",
"hash": "QmWGtsyPYEoiqTtWLpeUA2jpW4YSZgarKDD2zivYAFz7sR",
"hash": "QmajyQvG3Her6XmwoTHSVUyuEAc9v6AEj2GW3dx4Wyxd5K",
"name": "go-libp2p-record",
"version": "2.1.6"
"version": "3.0.0"
},
{
"author": "whyrusleeping",
Expand Down

0 comments on commit 3a13ac7

Please sign in to comment.