update methods to separate responsibilities
This commit is contained in:
parent
fa44705673
commit
bd45671e1d
3 changed files with 64 additions and 12 deletions
|
@ -54,9 +54,10 @@ func ResetGraphHandler(c *gin.Context) {
|
|||
}
|
||||
|
||||
memgraph.DropDatabase(Driver)
|
||||
lnd.WriteGraphToMemgraph(LndServices, Driver)
|
||||
graph := lnd.PullGraph(LndServices)
|
||||
lnd.WriteGraphToMemgraph(graph, Driver)
|
||||
|
||||
IsRoutineRunning = true
|
||||
//IsRoutineRunning = true
|
||||
StopChannel = make(chan bool)
|
||||
//go SubscribeToGraphUpdates()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue