mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-24 05:59:55 +08:00
update for interface changes
License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>
This commit is contained in:
@ -133,7 +133,10 @@ var ipnspsCancelCmd = &cmds.Command{
|
|||||||
return cmdkit.Errorf(cmdkit.ErrClient, err.Error())
|
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})
|
return cmds.EmitOnce(res, &ipnsPubsubCancel{ok})
|
||||||
},
|
},
|
||||||
Arguments: []cmdkit.Argument{
|
Arguments: []cmdkit.Argument{
|
||||||
|
@ -174,6 +174,10 @@ func (m *mockValueStore) GetValue(ctx context.Context, k string, opts ...ropts.O
|
|||||||
return m.r.GetValue(ctx, k, opts...)
|
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) {
|
func (m *mockValueStore) GetPublicKey(ctx context.Context, p peer.ID) (ci.PubKey, error) {
|
||||||
pk := m.kbook.PubKey(p)
|
pk := m.kbook.PubKey(p)
|
||||||
if pk != nil {
|
if pk != nil {
|
||||||
|
Reference in New Issue
Block a user