Commit 5ce21f7
committed
fix(events): harden nil context handling and thread ctx into rollback
Add a nil-context guard to EventContextFromContext so it returns nil
instead of panicking on a nil ctx, and use the request-scoped ctx in
rollbackDigestManifestTags for DeleteImageManifest/PutImageManifest so
rollbacks honor cancellation and carry event metadata.
Signed-off-by: cainydev <wajo432@gmail.com>1 parent 8f4c119 commit 5ce21f7
2 files changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
53 | 57 | | |
54 | 58 | | |
55 | 59 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
| 94 | + | |
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | | - | |
| 129 | + | |
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| |||
0 commit comments