Skip to content

Commit

Permalink
Assert that TenantManager is a TenantProvider
Browse files Browse the repository at this point in the history
Signed-off-by: Marcelo E. Magallon <marcelo.magallon@grafana.com>
  • Loading branch information
mem committed Aug 31, 2023
1 parent ac811dd commit 0a2a993
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/pusher/tenant_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ type TenantManager struct {
tenants map[int64]*tenantInfo
}

var _ TenantProvider = &TenantManager{}

type tenantInfo struct {
mutex sync.Mutex // protects the entire structure
validUntil time.Time
Expand Down

0 comments on commit 0a2a993

Please sign in to comment.