fix dep, impl nonempty
This commit is contained in:
parent
c8c18403e4
commit
a5d237df2a
24 changed files with 286 additions and 215 deletions
4
serve.go
4
serve.go
|
|
@ -9,7 +9,7 @@ import (
|
|||
"github.com/sirupsen/logrus"
|
||||
)
|
||||
|
||||
func Serve(hostport string, dir string) {
|
||||
func Serve(hostport string, dir string, opts *WsFsOpts) {
|
||||
closer := make(chan bool)
|
||||
|
||||
signalChan := make(chan os.Signal, 1)
|
||||
|
|
@ -25,7 +25,7 @@ func Serve(hostport string, dir string) {
|
|||
req := make(chan RequestCallback, 5)
|
||||
|
||||
go func(dir string, closer chan bool) {
|
||||
err := serveFuse(dir, req, closer)
|
||||
err := serveFuse(dir, req, *opts, closer)
|
||||
if err != nil {
|
||||
logrus.Fatalf("Error serving FUSE: %s", err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue