Closed soypat closed 2 years ago
The problem is that log.Fatalf
terminates the process and defers won't run.
Alright, here's a take using log.Panic
, which seems to be the way forward without adding too much error handling code.
Solved the merge conflict, PTAL
I wonder if we could build on this and instead of panic return an error via the control channel? I'd need to think about this a bit more..
Let me know what you think of this methodology.