Skip to content

Commit 17ef2be

Browse files
committed
temp fix for linter running
1 parent 5831d4b commit 17ef2be

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

packages/api/internal/clusters/resources_local.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ func (l *LocalClusterResourceProvider) GetSandboxLogs(ctx context.Context, teamI
144144
return api.SandboxLogs{Logs: ll, LogEntries: le}, nil
145145
}
146146

147-
func (l *LocalClusterResourceProvider) GetBuildLogs(ctx context.Context, nodeID *string, templateID string, buildID string, offset int32, limit int32, level *logs.LogLevel, cursor *time.Time, direction api.LogsDirection, source *api.LogsSource) ([]logs.LogEntry, error) {
147+
func (l *LocalClusterResourceProvider) GetBuildLogs(ctx context.Context, nodeID *string, templateID string, buildID string, offset int32, limit int32, level *logs.LogLevel, cursor *time.Time, direction api.LogsDirection, _ *api.LogsSource) ([]logs.LogEntry, error) {
148148
start, end := logQueryWindow(cursor, direction)
149149

150150
lokiDirection := defaultDirection
@@ -153,13 +153,13 @@ func (l *LocalClusterResourceProvider) GetBuildLogs(ctx context.Context, nodeID
153153
}
154154

155155
// todo
156-
if source == nil {
157-
// try node and then default to Loki
158-
} else if *source == api.LogsSourcePersistent {
159-
// force to node
160-
} else if *source == api.LogsSourceTemporary {
161-
// force to loki
162-
}
156+
// if source == nil {
157+
// // try node and then default to Loki
158+
// } else if *source == api.LogsSourcePersistent {
159+
// // force to node
160+
// } else if *source == api.LogsSourceTemporary {
161+
// // force to loki
162+
// }
163163

164164
if nodeID != nil {
165165
instance, found := l.instances.Get(*nodeID)

packages/api/internal/clusters/resources_remote.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ func (r *ClusterResourceProviderImpl) GetSandboxLogs(ctx context.Context, teamID
123123
return api.SandboxLogs{Logs: l, LogEntries: le}, nil
124124
}
125125

126-
func (r *ClusterResourceProviderImpl) GetBuildLogs(ctx context.Context, _ *string, templateID string, buildID string, offset int32, limit int32, level *logs.LogLevel, cursor *time.Time, direction api.LogsDirection, source *api.LogsSource) ([]logs.LogEntry, error) {
126+
func (r *ClusterResourceProviderImpl) GetBuildLogs(ctx context.Context, _ *string, templateID string, buildID string, offset int32, limit int32, level *logs.LogLevel, cursor *time.Time, direction api.LogsDirection, _ *api.LogsSource) ([]logs.LogEntry, error) {
127127
start, end := logQueryWindow(cursor, direction)
128128
res, err := r.client.V1TemplateBuildLogsWithResponse(
129129
ctx, buildID, &edgeapi.V1TemplateBuildLogsParams{

0 commit comments

Comments
 (0)