changeConnStatus changes connections status and sends events to all listeners. Lock should be held entering.
(status Status)
| 6576 | // changeConnStatus changes connections status and sends events |
| 6577 | // to all listeners. Lock should be held entering. |
| 6578 | func (nc *Conn) changeConnStatus(status Status) { |
| 6579 | if nc == nil { |
| 6580 | return |
| 6581 | } |
| 6582 | nc.sendStatusEvent(status) |
| 6583 | nc.status = status |
| 6584 | } |
| 6585 | |
| 6586 | // NkeyOptionFromSeed will load an nkey pair from a seed file. |
| 6587 | // It will return the NKey Option and will handle |
no test coverage detected