Browse Source

graph2: Added exception for open logs query in complexity.

module-madness-pointers 1.4.1
Gisle Aune 6 years ago
parent
commit
aff0d99842
  1. 4
      graph2/complexity.go

4
graph2/complexity.go

@ -44,6 +44,10 @@ func complexity() (cr ComplexityRoot) {
return childComplexity + findComplexity
}
cr.Query.Logs = func(childComplexity int, filter *logs.Filter) int {
if filter != nil && filter.Open != nil && *filter.Open == true {
return childComplexity + findComplexity
}
return childComplexity + listComplexity
}
cr.Query.Chapter = func(childComplexity int, id string) int {

Loading…
Cancel
Save