Skip to content

Commit

Permalink
Implement Stringer for nil podTracker (#14147)
Browse files Browse the repository at this point in the history
  • Loading branch information
evankanderson authored Jul 7, 2023
1 parent bd3e5e3 commit 4ccd1c9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/activator/net/throttler.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ func (p *podTracker) getWeight() int32 {
}

func (p *podTracker) String() string {
if p == nil {
return "<nil>"
}
return p.dest
}

Expand Down

0 comments on commit 4ccd1c9

Please sign in to comment.