Unverified Commit 3a13ac75 authored by Steven Allen's avatar Steven Allen Committed by GitHub

Merge pull request #112 from dirkmc/fix/validation-record

Just pass the record object to validation functions
parents d2378be3 ed147fe8
......@@ -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,
......@@ -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 }
......
......@@ -84,9 +84,9 @@
},
{
"author": "whyrusleeping",
"hash": "QmWGtsyPYEoiqTtWLpeUA2jpW4YSZgarKDD2zivYAFz7sR",
"hash": "QmajyQvG3Her6XmwoTHSVUyuEAc9v6AEj2GW3dx4Wyxd5K",
"name": "go-libp2p-record",
"version": "2.1.6"
"version": "3.0.0"
},
{
"author": "whyrusleeping",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment