feat: (api/cli): add custom type for duration

This commit is contained in:
Jim authored and Timothy Messier committed 2023-05-31 12:18:18 +00:00
1 parent 18e59998e9
commit de88a871c6
3 files changed
+98 -1

No files matched your search

+1 -1
View File
@@ -126,7 +126,7 @@ func messageKind(fd protoreflect.FieldDescriptor) (ptr, pkg, name string) {
case timestampName:
return "", "time", "Time"
case durationName:
return "", "time", "Duration"
return "", "api", "Duration"
default:
return "*", packageFromFullName(fd.Message().FullName()), string(fd.Message().Name())
}