update methods to separate responsibilities

This commit is contained in:
v 2024-03-26 19:46:11 -04:00
parent fa44705673
commit bd45671e1d
3 changed files with 64 additions and 12 deletions

View file

@ -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()