| Conditions | 2 |
| Total Lines | 9 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | '''what to do when miner becomes online |
||
| 9 | def when_online(channel, method, properties, body): |
||
| 10 | '''whan a miner is found to be online after being offline''' |
||
| 11 | print("[{0}] Received miner online message".format(ONLINE.app.now())) |
||
| 12 | try: |
||
| 13 | miner = ONLINE.app.messagedecodeminer(body) |
||
| 14 | entries = doonline(miner) |
||
| 15 | ONLINE.app.enqueue(entries) |
||
| 16 | except Exception as ex: |
||
| 17 | ONLINE.app.logexception(ex) |
||
| 18 | |||
| 43 |