Skip to content

Commit aaf885b

Browse files
committed
remove duplicate interface
1 parent 6109d9c commit aaf885b

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

coderd/agentapi/stats.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,13 @@ import (
77
"golang.org/x/xerrors"
88
"google.golang.org/protobuf/types/known/durationpb"
99

10-
"github.com/google/uuid"
11-
1210
"cdr.dev/slog"
1311
agentproto "github.com/coder/coder/v2/agent/proto"
1412
"github.com/coder/coder/v2/coderd/database"
1513
"github.com/coder/coder/v2/coderd/database/dbtime"
1614
"github.com/coder/coder/v2/coderd/workspacestats"
1715
)
1816

19-
type StatsBatcher interface {
20-
Add(now time.Time, agentID uuid.UUID, templateID uuid.UUID, userID uuid.UUID, workspaceID uuid.UUID, st *agentproto.Stats) error
21-
}
22-
2317
type StatsAPI struct {
2418
AgentFn func(context.Context) (database.WorkspaceAgent, error)
2519
Database database.Store

coderd/agentapi/stats_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ type statsBatcher struct {
3939
lastStats *agentproto.Stats
4040
}
4141

42-
var _ agentapi.StatsBatcher = &statsBatcher{}
42+
var _ workspacestats.StatsBatcher = &statsBatcher{}
4343

4444
func (b *statsBatcher) Add(now time.Time, agentID uuid.UUID, templateID uuid.UUID, userID uuid.UUID, workspaceID uuid.UUID, st *agentproto.Stats) error {
4545
b.mu.Lock()

0 commit comments

Comments
 (0)