diff options
| author | Paul Buetow <paul@buetow.org> | 2024-10-31 23:20:13 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2024-10-31 23:20:13 +0200 |
| commit | 9581ebeb48c48425f2f8f5160455f26dcdc0c550 (patch) | |
| tree | 997d409962e23cee59d2fbb0a4bc577472dafb20 /internal/run.go | |
| parent | c2b3c4f6e4d40c49d55deb5b696bb3cb8cdde531 (diff) | |
som stuff
Diffstat (limited to 'internal/run.go')
| -rw-r--r-- | internal/run.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/run.go b/internal/run.go index 1307d58..ea20643 100644 --- a/internal/run.go +++ b/internal/run.go @@ -38,7 +38,7 @@ func Run(ctx context.Context, args config.Args) error { } func runPlatform(ctx context.Context, args config.Args, platform string, sizeLimit int) error { - ent, err := schedule.Run(args, platform) + en, err := schedule.Run(args, platform) switch { case errors.Is(err, schedule.ErrNothingToSchedule): log.Println("Nothing to be scheduled for", platform) @@ -50,7 +50,7 @@ func runPlatform(ctx context.Context, args config.Args, platform string, sizeLim return err } - log.Println("Posting", ent) + log.Println("Posting", en) var postCB func(context.Context, config.Args, int, entry.Entry) error switch strings.ToLower(platform) { case "mastodon": @@ -61,10 +61,10 @@ func runPlatform(ctx context.Context, args config.Args, platform string, sizeLim log.Fatal("Platform", platform, "(not yet) implemented") } - if err := postCB(ctx, args, sizeLimit, ent); err != nil { + if err := postCB(ctx, args, sizeLimit, en); err != nil { return err } - if err := ent.MarkPosted(); err != nil { + if err := en.MarkPosted(); err != nil { return err } |
