Moved starting of fuse

This commit is contained in:
Yannick Ulrich 2023-03-01 19:07:14 +00:00
parent b5328ece92
commit 3b9690103b

11
main.go
View File

@ -181,11 +181,6 @@ func main() {
log.Error("Error intializing puremaps integration").Err(err).Send()
}
// Start control socket
err = startSocket(ctx, dev)
if err != nil {
log.Error("Error starting socket").Err(err).Send()
}
// Start fuse socket
if k.Bool("fuse.enabled") {
err = startFUSE(ctx, dev)
@ -193,6 +188,12 @@ func main() {
log.Error("Error starting fuse socket").Err(err).Send()
}
}
// Start control socket
err = startSocket(ctx, dev)
if err != nil {
log.Error("Error starting socket").Err(err).Send()
}
// Block forever
select {}
}