Skip to content

Commit c2d44d1

Browse files
authored
feat(codersdk/agentsdk): export LogDest interface (#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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy