Skip to content

Commit bf7c511

Browse files
committed
fix build
1 parent 7fd51d8 commit bf7c511

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

connection.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,8 +433,12 @@ func (c *Connection) SetNotifyContext(op interface{}) (context.Context, error) {
433433
return nil, err
434434
}
435435

436-
var ctx context.Context
436+
// var ctx context.Context
437+
438+
ctx := context.Background()
437439

440+
// maybe no need this switch
441+
// why ctx is nil from beginOp?
438442
switch op.(type) {
439443
case *fuseops.NotifyInvalInodeOp:
440444
ctx = c.beginOp(100+uint32(fusekernel.NotifyCodeInvalInode), 0)

0 commit comments

Comments
 (0)