mirror of
https://github.com/tailscale/tailscale.git
synced 2025-10-25 10:09:17 +00:00
types/structs: add structs.Incomparable annotation, use it where applicable
Shotizam before and output queries: sqlite> select sum(size) from bin where func like 'type..%'; 129067 => 120216
This commit is contained in:
@@ -7,9 +7,12 @@ package ratelimit
|
||||
import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"tailscale.com/types/structs"
|
||||
)
|
||||
|
||||
type Bucket struct {
|
||||
_ structs.Incomparable
|
||||
mu sync.Mutex
|
||||
FillInterval time.Duration
|
||||
Burst int
|
||||
|
||||
Reference in New Issue
Block a user