Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
DuodenumL committed Sep 8, 2021
1 parent 63a07ee commit 7d1cd0f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions api/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ func (h *Handler) log(w http.ResponseWriter, req *http.Request) {
}
}

// NewHandler new api http handler
func NewHandler(config *types.Config, workloadManager *workload.Manager) *Handler {
return &Handler{
config: config,
Expand Down
2 changes: 1 addition & 1 deletion manager/workload/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func (l *logBroadcaster) subscribe(app string, buf *bufio.ReadWriter) {
}

ID := coreutils.RandomString(8)
ctx, cancel := context.WithCancel(context.Background())
ctx, cancel := context.WithCancel(context.TODO())
defer cancel()

l.subscribers[app][ID] = &subscriber{buf, cancel}
Expand Down
1 change: 1 addition & 0 deletions manager/workload/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ func (m *Manager) Run(ctx context.Context) error {
}
}

// Subscribe subscribes logs
func (m *Manager) Subscribe(app string, buf *bufio.ReadWriter) {
m.logBroadcaster.subscribe(app, buf)
}

0 comments on commit 7d1cd0f

Please sign in to comment.