[#1244] nats: Split client creation into 2 stages

Create and connect to an endpoint using separate functions.

Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
Evgenii Stratonikov 2022-03-18 18:13:12 +03:00 committed by Alex Vanin
parent 2b0460c532
commit 414ba6e0a2
4 changed files with 47 additions and 36 deletions

View file

@ -89,6 +89,7 @@ func initApp(c *cfg) {
}
func bootUp(c *cfg) {
connectNats(c)
serveGRPC(c)
makeAndWaitNotaryDeposit(c)
bootstrapNode(c)