Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jacobsa-fuse
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
jacobsa-fuse
Commits
cf9ed934
Commit
cf9ed934
authored
May 01, 2015
by
Aaron Jacobs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a hook for fixing op type descriptions.
parent
966bfc88
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
fuseops/common_op.go
fuseops/common_op.go
+8
-2
fuseops/convert.go
fuseops/convert.go
+1
-1
No files found.
fuseops/common_op.go
View file @
cf9ed934
...
...
@@ -31,12 +31,18 @@ type commonOp struct {
opsInFlight
*
sync
.
WaitGroup
}
func
describeOpType
(
t
reflect
.
Type
)
(
desc
string
)
{
// TODO(jacobsa): Make this nicer.
desc
=
t
.
String
()
return
}
func
(
o
*
commonOp
)
init
(
opType
string
,
opType
reflect
.
Type
,
r
bazilfuse
.
Request
,
log
func
(
int
,
string
,
...
interface
{}),
opsInFlight
*
sync
.
WaitGroup
)
{
o
.
opType
=
opType
o
.
opType
=
describeOpType
(
opType
)
o
.
ctx
=
context
.
Background
()
o
.
r
=
r
o
.
log
=
log
...
...
fuseops/convert.go
View file @
cf9ed934
...
...
@@ -213,7 +213,7 @@ func Convert(
return
}
co
.
init
(
reflect
.
TypeOf
(
o
)
.
String
()
,
r
,
logForOp
,
opsInFlight
)
co
.
init
(
reflect
.
TypeOf
(
o
),
r
,
logForOp
,
opsInFlight
)
return
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment