1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-22 21:21:43 +08:00

update for interface changes

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
This commit is contained in:
Steven Allen
2018-09-24 05:24:30 -07:00
parent 91833e288f
commit 074a1ab48e
2 changed files with 8 additions and 1 deletions

View File

@ -133,7 +133,10 @@ var ipnspsCancelCmd = &cmds.Command{
return cmdkit.Errorf(cmdkit.ErrClient, err.Error())
}
ok := n.PSRouter.Cancel("/ipns/" + string(pid))
ok, err := n.PSRouter.Cancel("/ipns/" + string(pid))
if err != nil {
return err
}
return cmds.EmitOnce(res, &ipnsPubsubCancel{ok})
},
Arguments: []cmdkit.Argument{

View File

@ -174,6 +174,10 @@ func (m *mockValueStore) GetValue(ctx context.Context, k string, opts ...ropts.O
return m.r.GetValue(ctx, k, opts...)
}
func (m *mockValueStore) SearchValue(ctx context.Context, k string, opts ...ropts.Option) (<-chan []byte, error) {
return m.r.SearchValue(ctx, k, opts...)
}
func (m *mockValueStore) GetPublicKey(ctx context.Context, p peer.ID) (ci.PubKey, error) {
pk := m.kbook.PubKey(p)
if pk != nil {