mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore: move Batcher and Tracker to workspacestats (#13418)
This commit is contained in:
@@ -39,7 +39,7 @@ type statsBatcher struct {
|
||||
lastStats *agentproto.Stats
|
||||
}
|
||||
|
||||
var _ agentapi.StatsBatcher = &statsBatcher{}
|
||||
var _ workspacestats.Batcher = &statsBatcher{}
|
||||
|
||||
func (b *statsBatcher) Add(now time.Time, agentID uuid.UUID, templateID uuid.UUID, userID uuid.UUID, workspaceID uuid.UUID, st *agentproto.Stats) error {
|
||||
b.mu.Lock()
|
||||
|
||||
Reference in New Issue
Block a user