spiegel_podman/pkg/api/handlers
Nalin Dahyabhai c46884aa93 podman events: check for an error after we finish reading events
The function that's handing us events will return an error after closing
the channel over which it's sending events, and its caller (in its own
goroutine) will then send that error over another channel.

The logic that started the goroutine is likely to notice that the events
channel is closed before noticing that the error channel has a result
for it to read, so any error that would have been communicated would be
lost.

When we finish reading events, check if the reader returned an error
before telling our caller that there was no error.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2024-05-14 13:18:51 -04:00
..
compat podman events: check for an error after we finish reading events 2024-05-14 13:18:51 -04:00
libpod Merge pull request #22322 from mheon/update_the_config 2024-04-22 07:50:48 +00:00
swagger Add support for updating restart policy 2024-04-17 08:23:51 -04:00
types Bump Go module to v5 2024-02-08 09:35:39 -05:00
utils Bump Go module to v5 2024-02-08 09:35:39 -05:00
changes.go Accept a config blob alongside the "changes" slice when committing 2023-11-30 09:00:52 -05:00
changes_test.go Accept a config blob alongside the "changes" slice when committing 2023-11-30 09:00:52 -05:00
decoder.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
types.go Fix reference to deprecated types.Info 2024-03-27 08:17:10 -05:00