Monorepo for Tangled tangled.org

appview/languages: fix logic bug in updating language breakdowns #625

merged opened by oppi.li targeting master from push-zomkuzmzokvl
Labels

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:plc:qfpnj4og54vl56wngdriaxug/sh.tangled.repo.pull/3m23negh5zz22
+2 -5
Interdiff #1 #2
appview/db/language.go

This file has not been changed.

appview/repo/index.go

This file has not been changed.

+2 -5
appview/state/knotstream.go
··· 181 181 // update appview's cache 182 182 err = db.UpdateRepoLanguages(tx, repo.RepoAt(), ref.Short(), langs) 183 183 if err != nil { 184 + fmt.Printf("failed; %s\n", err) 184 185 // non-fatal 185 186 } 186 187 187 - err = tx.Commit() 188 - if err != nil { 189 - return err 190 - } 191 - return db.InsertRepoLanguages(d, langs) 188 + return tx.Commit() 192 189 } 193 190 194 191 func ingestPipeline(d *db.DB, source ec.Source, msg ec.Message) error {

History

3 rounds 0 comments
sign up or login to add to the discussion
oppi.li submitted #2
1 commit
expand
appview/languages: fix logic bug in updating language breakdowns
3/3 success
expand
expand 0 comments
pull request successfully merged
1 commit
expand
appview/languages: fix logic bug in updating language breakdowns
3/3 success
expand
expand 0 comments
oppi.li submitted #0
1 commit
expand
appview/languages: fix logic bug in updating language breakdowns
2/3 failed, 1/3 success
expand
expand 0 comments