1. Removed main routine

This commit is contained in:
Yannick Ulrich 2023-02-26 13:04:42 +00:00
parent b181785006
commit ec39e649c5
1 changed files with 2 additions and 9 deletions

11
fuse.go
View File

@ -1,7 +1,6 @@
package main
import (
"go.arsenm.dev/logger"
"go.arsenm.dev/logger/log"
"os"
"context"
@ -484,12 +483,7 @@ func (f *ITNode) Rmdir(ctx context.Context, name string) syscall.Errno {
return f.Unlink(ctx, name)
}
func init() {
// Default logger is JSONLogger going to stderr
log.Logger = logger.NewPretty(os.Stdout)
}
func main() {
func startFuse(ctx context.Context, dev *infinitime.Device) error {
// This is where we'll mount the FS
mntDir := "/tmp/x"
os.Mkdir(mntDir, 0755)
@ -506,10 +500,9 @@ func main() {
Str("target", mntDir).
Err(err).
Send()
return
return err
}
dev := Device{};
log.Info("Mounted on target").
Str("target", mntDir).
Send()