From 66dad039d2a8b45f2105b77dcf94e2c80aef6510 Mon Sep 17 00:00:00 2001 From: Aaron Jacobs Date: Tue, 5 May 2015 10:00:18 +1000 Subject: [PATCH] Convert --- fuseops/convert.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/fuseops/convert.go b/fuseops/convert.go index 5a477f7..6ef7037 100644 --- a/fuseops/convert.go +++ b/fuseops/convert.go @@ -15,7 +15,6 @@ package fuseops import ( - "sync" "time" "golang.org/x/net/context" @@ -23,16 +22,17 @@ import ( "github.com/jacobsa/bazilfuse" ) -// Convert the supplied bazilfuse request struct to an Op, returning nil if it -// is unknown. -// // This function is an implementation detail of the fuse package, and must not // be called by anyone else. +// +// Convert the supplied bazilfuse request struct to an Op, returning nil if it +// is unknown. finished will be called with the error supplied to o.Respond +// when the user invokes that method. func Convert( - parentCtx context.Context, + opCtx context.Context, r bazilfuse.Request, logForOp func(int, string, ...interface{}), - opsInFlight *sync.WaitGroup) (o Op) { + finished func(error)) (o Op) { var co *commonOp switch typed := r.(type) { @@ -215,7 +215,7 @@ func Convert( return } - co.init(parentCtx, o, r, logForOp, opsInFlight) + co.init(opCtx, o, r, logForOp, finished) return }