mirror of
https://github.com/postmannen/ctrl.git
synced 2024-12-14 12:37:31 +00:00
removed not needed comments
This commit is contained in:
parent
29c0ab8c52
commit
f2f7be5c11
1 changed files with 0 additions and 8 deletions
|
@ -510,17 +510,9 @@ func (p process) messageSubscriberHandler(natsConn *nats.Conn, thisNode string,
|
||||||
out := []byte{}
|
out := []byte{}
|
||||||
var err error
|
var err error
|
||||||
|
|
||||||
// TODO: This is not correct. As it is now we only want signature checking
|
|
||||||
// for REQCliCommand, but this will only call the handler if that is true,
|
|
||||||
// or that the EnableSignatureCheck flag is set. This will lead to all other
|
|
||||||
// REQ types being discarded since we don't call the mh.Handler method for
|
|
||||||
// those REQ.
|
|
||||||
// NB: Add the logic for also calling mh.handler for those other methods
|
|
||||||
// that don't need a valid signature.
|
|
||||||
if p.signatures.verifySignature(message) {
|
if p.signatures.verifySignature(message) {
|
||||||
// Call the method handler for the specified method.
|
// Call the method handler for the specified method.
|
||||||
out, err = mh.handler(p, message, thisNode)
|
out, err = mh.handler(p, message, thisNode)
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
er := fmt.Errorf("error: subscriberHandler: handler method failed: %v", err)
|
er := fmt.Errorf("error: subscriberHandler: handler method failed: %v", err)
|
||||||
p.processes.errorKernel.errSend(p, message, er)
|
p.processes.errorKernel.errSend(p, message, er)
|
||||||
|
|
Loading…
Reference in a new issue