···105105// grab pipelines from DB and munge that into a hashmap with commit sha as key
106106//
107107// golang is so blessed that it requires 35 lines of imperative code for this
108108-func (rp *Repo) getPipelineStatuses(
108108+func getPipelineStatuses(
109109+ d *db.DB,
109110 repoInfo repoinfo.RepoInfo,
110111 shas []string,
111112) (map[string]db.Pipeline, error) {
···116117 }
117118118119 ps, err := db.GetPipelineStatuses(
119119- rp.db,
120120+ d,
120121 db.FilterEq("repo_owner", repoInfo.OwnerDid),
121122 db.FilterEq("repo_name", repoInfo.Name),
122123 db.FilterEq("knot", repoInfo.Knot),