Move init_puppet() from __init__() to start()
huan opened this issue · 2 comments
huan commented
Currently, we are initializing the GRPC inside __init__()
which is an anti-pattern because it will make the module hard to test.
Please move the init_puppet()
to the start()
which it is a better place to do this job only after the start()
was called.
fish-ball commented
The issue is resolved, it's ok to be closed.
huan commented
Great improvement, and thank you very much!