Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions backend/ftp/ftp.go
Original file line number Diff line number Diff line change
Expand Up @@ -898,15 +898,15 @@ func (f *Fs) List(ctx context.Context, dir string) (entries fs.DirEntries, err e

resultchan := make(chan []*ftp.Entry, 1)
errchan := make(chan error, 1)
go func() {
go func(c *ftp.ServerConn) {
result, err := c.List(f.dirFromStandardPath(path.Join(f.root, dir)))
f.putFtpConnection(&c, err)
if err != nil {
errchan <- err
return
}
resultchan <- result
}()
}(c)

// Wait for List for up to Timeout seconds
timer := time.NewTimer(f.ci.TimeoutOrInfinite())
Expand Down
9 changes: 4 additions & 5 deletions backend/oracleobjectstorage/waiter.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,6 @@ type StateChangeConf struct {
func (conf *StateChangeConf) WaitForStateContext(ctx context.Context, entityType string) (any, error) {
// fs.Debugf(entityType, "Waiting for state to become: %s", conf.Target)

notfoundTick := 0
targetOccurrence := 0

// Set a default for times to check for not found
if conf.NotFoundChecks == 0 {
conf.NotFoundChecks = 20
Expand All @@ -84,9 +81,11 @@ func (conf *StateChangeConf) WaitForStateContext(ctx context.Context, entityType
// cancellation channel for the refresh loop
cancelCh := make(chan struct{})

result := Result{}

go func() {
notfoundTick := 0
targetOccurrence := 0
result := Result{}

defer close(resCh)

select {
Expand Down
2 changes: 1 addition & 1 deletion cmd/serve/sftp/connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ func (c *conn) handleChannel(newChannel ssh.NewChannel) {
}
}
fs.Debugf(c.what, " - accepted: %v\n", ok)
err = req.Reply(ok, reply)
err := req.Reply(ok, reply)
if err != nil {
fs.Errorf(c.what, "Failed to Reply to request: %v", err)
return
Expand Down
2 changes: 1 addition & 1 deletion fs/log/systemd_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func startSystemdLog(handler *OutputHandler) bool {
handler.clearFormatFlags(logFormatDate | logFormatTime | logFormatMicroseconds | logFormatUTC | logFormatLongFile | logFormatShortFile | logFormatPid)
handler.setFormatFlags(logFormatNoLevel)
handler.SetOutput(func(level slog.Level, text string) {
_ = journal.Print(slogLevelToSystemdPriority(level), "%-6s: %s\n", level, text)
_ = journal.Print(slogLevelToSystemdPriority(level), "%-6s: %s", level, text)
})
return true
}
Expand Down