(ctx context.Context)
| 85 | } |
| 86 | |
| 87 | func ContextUpdatesBeginTx(ctx context.Context) context.Context { |
| 88 | updatesVal := ctx.Value(waveObjUpdateKey) |
| 89 | if updatesVal == nil { |
| 90 | return ctx |
| 91 | } |
| 92 | updates := updatesVal.(*contextUpdatesType) |
| 93 | updates.UpdatesStack = append(updates.UpdatesStack, make(map[ORef]WaveObjUpdate)) |
| 94 | return ctx |
| 95 | } |
| 96 | |
| 97 | func ContextUpdatesCommitTx(ctx context.Context) { |
| 98 | updatesVal := ctx.Value(waveObjUpdateKey) |