Skip to content

Commit c2d44d1

Browse files
authored
feat(codersdk/agentsdk): export LogDest interface (coder#13792)
Signed-off-by: Cian Johnston <cian@coder.com>
1 parent dd80958 commit c2d44d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

codersdk/agentsdk/logs.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ type LogSender struct {
284284
outputLen int
285285
}
286286

287-
type logDest interface {
287+
type LogDest interface {
288288
BatchCreateLogs(ctx context.Context, request *proto.BatchCreateLogsRequest) (*proto.BatchCreateLogsResponse, error)
289289
}
290290

@@ -360,7 +360,7 @@ var LogLimitExceededError = xerrors.New("Log limit exceeded")
360360
// SendLoop sends any pending logs until it hits an error or the context is canceled. It does not
361361
// retry as it is expected that a higher layer retries establishing connection to the agent API and
362362
// calls SendLoop again.
363-
func (l *LogSender) SendLoop(ctx context.Context, dest logDest) error {
363+
func (l *LogSender) SendLoop(ctx context.Context, dest LogDest) error {
364364
l.L.Lock()
365365
defer l.L.Unlock()
366366
if l.exceededLogLimit {

0 commit comments

Comments
 (0)