(ctx context.Context)
| 87 | } |
| 88 | |
| 89 | func (s *Scraper) Run(ctx context.Context) { |
| 90 | c, err := client.NewClientWithOpts(client.FromEnv, client.WithAPIVersionNegotiation()) |
| 91 | if err != nil { |
| 92 | slog.Error("Creating Docker client for user stats", "error", err) |
| 93 | return |
| 94 | } |
| 95 | |
| 96 | s.run(ctx, c) |
| 97 | } |
| 98 | |
| 99 | // Private |
| 100 |