Skip to content

Commit

Permalink
Add a counter helper
Browse files Browse the repository at this point in the history
  • Loading branch information
bep committed May 15, 2023
1 parent e0e19a9 commit 0988b76
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions common/types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ package types
import (
"fmt"
"reflect"
"sync/atomic"

"github.com/spf13/cast"
)
Expand Down Expand Up @@ -90,3 +91,6 @@ func IsNil(v any) bool {
type DevMarker interface {
DevOnly()
}

// This is only used for debugging purposes.
var InvocationCounter atomic.Int64

0 comments on commit 0988b76

Please sign in to comment.