[#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:
parent
2b0460c532
commit
414ba6e0a2
4 changed files with 47 additions and 36 deletions
|
@ -89,6 +89,7 @@ func initApp(c *cfg) {
|
|||
}
|
||||
|
||||
func bootUp(c *cfg) {
|
||||
connectNats(c)
|
||||
serveGRPC(c)
|
||||
makeAndWaitNotaryDeposit(c)
|
||||
bootstrapNode(c)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue