summaryrefslogtreecommitdiff
path: root/plugins/websockets
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-06-11 15:52:11 +0300
committerValery Piashchynski <[email protected]>2021-06-11 15:52:11 +0300
commit4c6a04f16399ab353d81d1820877b764ad2d20c5 (patch)
tree64a257391fd2ee975f31d9c2ead1dcced59d63c7 /plugins/websockets
parentb99bfbe21a0f44b1a16b9110d779719fc637127c (diff)
Update tests
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'plugins/websockets')
-rw-r--r--plugins/websockets/rpc.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/websockets/rpc.go b/plugins/websockets/rpc.go
index 80697fa2..341e0b2a 100644
--- a/plugins/websockets/rpc.go
+++ b/plugins/websockets/rpc.go
@@ -41,7 +41,7 @@ func (r *rpc) Publish(in *websocketsv1.Request, out *websocketsv1.Response) erro
}
}
- out.Ok = false
+ out.Ok = true
return nil
}
@@ -63,12 +63,13 @@ func (r *rpc) PublishAsync(in *websocketsv1.Request, out *websocketsv1.Response)
for i := 0; i < msgLen; i++ {
bb, err := proto.Marshal(in.GetMessages()[i])
if err != nil {
+ out.Ok = false
return errors.E(op, err)
}
r.plugin.PublishAsync(bb)
}
- out.Ok = false
+ out.Ok = true
return nil
}