package provision // Record-write census entries for wake-latency-3, layered on // serviceRunsWriteCensusInventory. Reviewed by the branch author; the census // owner approves the card (census-ruling-wake-latency-3, // docs/superpowers/notes/census-proposal-wake-latency-3.md). // - buildStates.write's first try goes on the copy this agent last wrote, // conditioned on its etag. Its one Put, the build-state object, is the // same Put with the same condition rule (the etag the merge's state came // with); its class is unchanged: nonrecord. func wakeLatency3WriteCensusInventory() []censusEntry { entries := append([]censusEntry(nil), serviceRunsWriteCensusInventory()...) replacements := []censusEntry{ {"internal/host/buildstate.go", "buildStates.write", "nonrecord", "sel:Put", "0c6620f6c436457c18142203cee157e4d2104c79304d1cfd1f159bd4fea40797"}, } for _, r := range replacements { found := false for i, e := range entries { if e.File == r.File && e.Unit == r.Unit { entries[i], found = r, true } } if !found { entries = append(entries, r) } } return entries }