Skip to content

Commit 2e981e0

Browse files
committed
fixing rebase errors
1 parent 3225ff3 commit 2e981e0

File tree

3 files changed

+18
-25
lines changed

3 files changed

+18
-25
lines changed

internal/config/config.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -665,12 +665,6 @@ func registerClientFlags(fs *flag.FlagSet) {
665665
"Duration to wait for a response before retrying request",
666666
)
667667

668-
fs.Duration(
669-
ClientGRPCResponseTimeoutKey,
670-
DefResponseTimeout,
671-
"Duration to wait for a response before retrying request",
672-
)
673-
674668
fs.Int(
675669
ClientGRPCMaxParallelFileOperationsKey,
676670
DefMaxParallelFileOperations,

internal/config/types.go

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -36,22 +36,22 @@ func parseServerType(str string) (ServerType, bool) {
3636

3737
type (
3838
Config struct {
39-
Command *Command `yaml:"command" mapstructure:"command"`
40-
AuxiliaryCommand *Command `yaml:"auxiliary_command" mapstructure:"auxiliary_command"`
41-
Log *Log `yaml:"log" mapstructure:"log"`
42-
DataPlaneConfig *DataPlaneConfig `yaml:"data_plane_config" mapstructure:"data_plane_config"`
43-
Client *Client `yaml:"client" mapstructure:"client"`
44-
Collector *Collector `yaml:"collector" mapstructure:"collector"`
45-
Watchers *Watchers `yaml:"watchers" mapstructure:"watchers"`
39+
Command *Command `yaml:"command" mapstructure:"command"`
40+
AuxiliaryCommand *Command `yaml:"auxiliary_command" mapstructure:"auxiliary_command"`
41+
Log *Log `yaml:"log" mapstructure:"log"`
42+
DataPlaneConfig *DataPlaneConfig `yaml:"data_plane_config" mapstructure:"data_plane_config"`
43+
Client *Client `yaml:"client" mapstructure:"client"`
44+
Collector *Collector `yaml:"collector" mapstructure:"collector"`
45+
Watchers *Watchers `yaml:"watchers" mapstructure:"watchers"`
4646
ExternalDataSource *ExternalDataSource `yaml:"external_data_source" mapstructure:"external_data_source"`
47-
SyslogServer *SyslogServer `yaml:"syslog_server" mapstructure:"syslog_server"`
48-
Labels map[string]any `yaml:"labels" mapstructure:"labels"`
49-
Version string `yaml:"-"`
50-
Path string `yaml:"-"`
51-
UUID string `yaml:"-"`
52-
LibDir string `yaml:"-"`
53-
AllowedDirectories []string `yaml:"allowed_directories" mapstructure:"allowed_directories"`
54-
Features []string `yaml:"features" mapstructure:"features"`
47+
SyslogServer *SyslogServer `yaml:"syslog_server" mapstructure:"syslog_server"`
48+
Labels map[string]any `yaml:"labels" mapstructure:"labels"`
49+
Version string `yaml:"-"`
50+
Path string `yaml:"-"`
51+
UUID string `yaml:"-"`
52+
LibDir string `yaml:"-"`
53+
AllowedDirectories []string `yaml:"allowed_directories" mapstructure:"allowed_directories"`
54+
Features []string `yaml:"features" mapstructure:"features"`
5555
}
5656

5757
Log struct {

internal/file/file_manager_service.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import (
2020
"strconv"
2121
"strings"
2222
"sync"
23-
"time"
2423

2524
"golang.org/x/sync/errgroup"
2625
"google.golang.org/grpc"
@@ -48,8 +47,6 @@ const (
4847
executePerm = 0o111
4948
)
5049

51-
const fileDownloadTimeout = 60 * time.Second
52-
5350
type DownloadHeader struct {
5451
ETag string
5552
LastModified string
@@ -416,6 +413,7 @@ func (fms *FileManagerService) DetermineFileActions(
416413
slog.DebugContext(ctx, "External file detected - flagging for fetch", "file_name", fileName)
417414
modifiedFile.Action = model.ExternalFile
418415
fileDiff[fileName] = modifiedFile
416+
419417
continue
420418
}
421419

@@ -644,7 +642,8 @@ func (fms *FileManagerService) executeFileActions(ctx context.Context) (actionEr
644642
func (fms *FileManagerService) downloadUpdatedFilesToTempLocation(ctx context.Context) (updateError error) {
645643
var downloadFiles []*model.FileCache
646644
for _, fileAction := range fms.fileActions {
647-
if fileAction.Action == model.Add || fileAction.Action == model.Update || fileAction.Action == model.ExternalFile {
645+
if fileAction.Action == model.Add || fileAction.Action == model.Update ||
646+
fileAction.Action == model.ExternalFile {
648647
downloadFiles = append(downloadFiles, fileAction)
649648
}
650649
}

0 commit comments

Comments
 (0)