update for interface changes
License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>
Steven Allen committed
Sep 24, 2018 at 05:24 UTC
074a1ab48e04d269343e114ed9128ca94b94e512
2 files changed
+8
-1
core/commands/name/ipnsps.go
+4
-1
@@ -133,7 +133,10 @@ var ipnspsCancelCmd = &cmds.Command{
133
return cmdkit.Errorf(cmdkit.ErrClient, err.Error())
134
}
135
136
- ok := n.PSRouter.Cancel("/ipns/" + string(pid))
136
+ ok, err := n.PSRouter.Cancel("/ipns/" + string(pid))
137
+ if err != nil {
138
+ return err
139
+ }
140
return cmds.EmitOnce(res, &ipnsPubsubCancel{ok})
141
},
142
Arguments: []cmdkit.Argument{
namesys/ipns_resolver_validation_test.go
+4
@@ -174,6 +174,10 @@ func (m *mockValueStore) GetValue(ctx context.Context, k string, opts ...ropts.O
174
return m.r.GetValue(ctx, k, opts...)
175
}
176
177
+func (m *mockValueStore) SearchValue(ctx context.Context, k string, opts ...ropts.Option) (<-chan []byte, error) {
178
+ return m.r.SearchValue(ctx, k, opts...)
179
+}
180
+
181
func (m *mockValueStore) GetPublicKey(ctx context.Context, p peer.ID) (ci.PubKey, error) {
182
pk := m.kbook.PubKey(p)
183
if pk != nil {