Commit cf9ed934 authored by Aaron Jacobs's avatar Aaron Jacobs

Added a hook for fixing op type descriptions.

parent 966bfc88
......@@ -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
......
......@@ -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
}
......
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