mirror of
https://github.com/iyear/tdl
synced 2025-01-08 11:57:55 +08:00
fix(forward): lint
This commit is contained in:
parent
5233607250
commit
e69f704780
@ -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,
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user