mirror of https://github.com/pulumi/pulumi.git
34961a6a29
The filestate backend implementation drops context in many places instead opting to use context.TODO. context.TODO is a TODO--something intended to be addressed. context.Backgruond is appropriate for process-scoped operations. In this case, we can resolve the issues and drop all uses of context.TODO by plumbing the received contexts appropriately. For localSnapshotPersister, we add a new `ctx` field because the interface doesn't yet accept a context argument. This is tracked in #12594. Result: ``` % rg context.TODO pkg/backend/filestate [empty] ``` Resolves #12594 |
||
---|---|---|
.. | ||
display | ||
filestate | ||
httpstate | ||
state | ||
apply.go | ||
backend.go | ||
backend_test.go | ||
doc.go | ||
errors.go | ||
mock.go | ||
policypack.go | ||
query.go | ||
snapshot.go | ||
snapshot_test.go | ||
stack.go | ||
updates.go | ||
watch.go |