Commit 2e2e959a authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Fix FileSystemConnector debug in examples.

parent 90b39a3b
......@@ -66,7 +66,6 @@ func main() {
if *latencies {
state.SetRecordStatistics(true)
debugFs.AddMountState(state)
debugFs.AddFileSystemConnector(conn)
}
mountPoint := flag.Arg(0)
......
......@@ -35,14 +35,13 @@ func main() {
fs = debugFs
}
state, conn, err := fuse.MountFileSystem(flag.Arg(0), fs, nil)
state, _, err := fuse.MountFileSystem(flag.Arg(0), fs, nil)
if err != nil {
fmt.Printf("Mount fail: %v\n", err)
os.Exit(1)
}
if *latencies {
debugFs.AddFileSystemConnector(conn)
debugFs.AddMountState(state)
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment