()
| 38 | } |
| 39 | |
| 40 | func (r *basePoolManager) getClientOrStub() runnerCommon.GithubClient { |
| 41 | var err error |
| 42 | var ghc runnerCommon.GithubClient |
| 43 | ghc, err = ghClient.Client(r.ctx, r.entity) |
| 44 | if err != nil { |
| 45 | slog.WarnContext(r.ctx, "failed to create github client", "error", err) |
| 46 | ghc = &stubGithubClient{ |
| 47 | err: runnerErrors.NewUnauthorizedError("failed to create github client; please update credentials"), |
| 48 | } |
| 49 | } |
| 50 | return ghc |
| 51 | } |
| 52 | |
| 53 | func (r *basePoolManager) handleEntityUpdate(entity params.ForgeEntity, operation common.OperationType) { |
| 54 | slog.DebugContext(r.ctx, "received entity operation", "entity", entity.ID, "operation", operation) |
no outgoing calls
no test coverage detected