refactor: rename to actions
This commit is contained in:
@@ -22,7 +22,7 @@ import (
|
||||
|
||||
const (
|
||||
MaxLineSize = 64 * 1024
|
||||
DBFSPrefix = "bots_tasks/"
|
||||
DBFSPrefix = "actions_tasks/"
|
||||
|
||||
timeFormat = "2006-01-02T15:04:05.0000000Z07:00"
|
||||
defaultBufSize = 64 * 1024
|
||||
@@ -103,7 +103,7 @@ func TransferLogs(ctx context.Context, filename string) (func(), error) {
|
||||
}
|
||||
defer f.Close()
|
||||
|
||||
if _, err := storage.Bots.Save(filename, f, -1); err != nil {
|
||||
if _, err := storage.Actions.Save(filename, f, -1); err != nil {
|
||||
return nil, fmt.Errorf("storage save %q: %w", filename, err)
|
||||
}
|
||||
return remove, nil
|
||||
@@ -118,7 +118,7 @@ func RemoveLogs(ctx context.Context, inStorage bool, filename string) error {
|
||||
}
|
||||
return nil
|
||||
}
|
||||
err := storage.Bots.Delete(filename)
|
||||
err := storage.Actions.Delete(filename)
|
||||
if err != nil {
|
||||
return fmt.Errorf("storage delete %q: %w", filename, err)
|
||||
}
|
||||
@@ -134,7 +134,7 @@ func openLogs(ctx context.Context, inStorage bool, filename string) (io.ReadSeek
|
||||
}
|
||||
return f, nil
|
||||
}
|
||||
f, err := storage.Bots.Open(filename)
|
||||
f, err := storage.Actions.Open(filename)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("storage open %q: %w", filename, err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user