Skip to content

Refactor using harnessx - #301

Open
emmanuelgautier wants to merge 1 commit into
mainfrom
migrate-harnessx
Open

Refactor using harnessx#301
emmanuelgautier wants to merge 1 commit into
mainfrom
migrate-harnessx

Conversation

@emmanuelgautier

Copy link
Copy Markdown
Member

No description provided.

Comment thread scan/harness_adapter.go
func (a *harnessxReporter) OnCheckComplete(result harnessx.Result) {
if result.CheckID == operationsLoaderCheckID {
a.mu.Lock()
for _, res := range result.Resources {
// resource: it already made the single shared HTTP request, so this check
// reuses that response instead of making its own.
func fetchResultOf(store harnessx.ResultStore, resourceID string) (*httpcookiesfetch.FetchResult, bool) {
res, ok := store.GetForResource(httpcookiesfetch.Check.ID, resourceID)
}

func fetchResultOf(store harnessx.ResultStore, resourceID string) (*httpcookiesfetch.FetchResult, bool) {
res, ok := store.GetForResource(httpcookiesfetch.Check.ID, resourceID)
}

func fetchResultOf(store harnessx.ResultStore, resourceID string) (*httpcookiesfetch.FetchResult, bool) {
res, ok := store.GetForResource(httpcookiesfetch.Check.ID, resourceID)
}

func fetchResultOf(store harnessx.ResultStore, resourceID string) (*httpcookiesfetch.FetchResult, bool) {
res, ok := store.GetForResource(httpcookiesfetch.Check.ID, resourceID)
}

func fetchResultOf(store harnessx.ResultStore, resourceID string) (*httpcookiesfetch.FetchResult, bool) {
res, ok := store.GetForResource(httpcookiesfetch.Check.ID, resourceID)
}

func fetchResultOf(store harnessx.ResultStore, resourceID string) (*httpheadersfetch.FetchResult, bool) {
res, ok := store.GetForResource(httpheadersfetch.Check.ID, resourceID)
}

func fetchResultOf(store harnessx.ResultStore, resourceID string) (*httpheadersfetch.FetchResult, bool) {
res, ok := store.GetForResource(httpheadersfetch.Check.ID, resourceID)
// resource: it already made the single shared HTTP request, so this check
// reuses that response instead of making its own.
func fetchResultOf(store harnessx.ResultStore, resourceID string) (*httpheadersfetch.FetchResult, bool) {
res, ok := store.GetForResource(httpheadersfetch.Check.ID, resourceID)
}

func fetchResultOf(store harnessx.ResultStore, resourceID string) (*httpheadersfetch.FetchResult, bool) {
res, ok := store.GetForResource(httpheadersfetch.Check.ID, resourceID)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant