Skip to content

Commit

Permalink
Remove golang.org/x/exp/constraints usage
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewkroh committed Aug 22, 2023
1 parent 359b9af commit d88d401
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions libbeat/processors/dns/resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ import (
"sync"
"time"

"golang.org/x/exp/constraints"

"github.com/miekg/dns"
"github.com/rcrowley/go-metrics"

Expand Down Expand Up @@ -252,7 +250,7 @@ func (res *MiekgResolver) getOrCreateNameserverStats(ns string) *nameserverStats
return stats
}

func min[T constraints.Ordered](a, b T) T {
func min[T uint32](a, b T) T {
if a < b {
return a
}
Expand Down

0 comments on commit d88d401

Please sign in to comment.