fix(forward): lint

This commit is contained in:
iyear 2023-11-27 11:04:02 +08:00
parent 5233607250
commit e69f704780
2 changed files with 3 additions and 3 deletions

View File

@ -80,8 +80,8 @@ func Run(ctx context.Context, opts Options) error {
fwProgress := prog.New(pw.FormatNumber)
fw := forwarder.New(forwarder.Options{
Pool: pool,
Iter: newIter(iterOptions{
Pool: pool,
Iter: newIter(iterOptions{
manager: manager,
pool: pool,
to: to,

View File

@ -20,7 +20,7 @@ type CloneOptions struct {
Progress uploader.Progress
}
func (f *Forwarder) CloneMedia(ctx context.Context, opts CloneOptions,dryRun bool) (tg.InputFileClass, error) {
func (f *Forwarder) CloneMedia(ctx context.Context, opts CloneOptions, dryRun bool) (tg.InputFileClass, error) {
// if dry run, just return empty input file
if dryRun {
// directly call progress callback