meta: formatting go

Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
This commit is contained in:
Vincenzo Palazzo 2024-04-19 12:55:50 -04:00
parent d0d0d4b6a5
commit 1d435f9f3b
Signed by: vincenzopalazzo
GPG Key ID: 8B6DC2B870B80D5F
1 changed files with 13 additions and 13 deletions

View File

@ -36,21 +36,21 @@ func main() {
}
fmt.Println("Cleaning up opened channels for all nodes")
if err:=graph.CloseAllChannels(ctx, 0); err!=nil{
fmt.Printf("Could not clean up node 0: %v\n", err)
os.Exit(1)
}
fmt.Println("Cleaning up opened channels for all nodes")
if err:=graph.CloseAllChannels(ctx, 0); err!=nil{
fmt.Printf("Could not clean up node 0: %v\n", err)
os.Exit(1)
}
if err:=graph.CloseAllChannels(ctx, 1); err!=nil{
fmt.Printf("Could not clean up node 1: %v\n", err)
os.Exit(1)
}
if err:=graph.CloseAllChannels(ctx, 1); err!=nil{
fmt.Printf("Could not clean up node 1: %v\n", err)
os.Exit(1)
}
if err:=graph.CloseAllChannels(ctx, 2); err!=nil{
fmt.Printf("Could not clean up node q: %v\n", err)
os.Exit(1)
}
if err:=graph.CloseAllChannels(ctx, 2); err!=nil{
fmt.Printf("Could not clean up node q: %v\n", err)
os.Exit(1)
}
fmt.Println("Waiting for threads to shutdown")
cancel()