Skip to content

v2: fix EventChan#158

Merged
estesp merged 1 commit intocontainerd:masterfrom
AkihiroSuda:fix-event-chan
May 20, 2020
Merged

v2: fix EventChan#158
estesp merged 1 commit intocontainerd:masterfrom
AkihiroSuda:fix-event-chan

Conversation

@AkihiroSuda
Copy link
Member

@AkihiroSuda AkihiroSuda commented May 20, 2020

EventChan() was completely broken:

  • [critical] err == nil comparison was flipped in the opposite way
  • [critical] var out map[string]interface{} was not initialized with make()
  • [non-critical] .(uint64) conversin errors were not caught

@AkihiroSuda
Copy link
Member Author

@Zyqsempai @fuweid PTAL

EventChan() was completely broken:
* [critical] `err == nil` comparison was flipped in the opposite way
* [critical] `var out map[string]interface{}` was not initialized with `make()`
* [non-critical] `.(uint64)` conversin errors were not caught

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
@AkihiroSuda
Copy link
Member Author

rebased

Copy link
Member

@fuweid fuweid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

Good night @AkihiroSuda :)

Copy link
Member

@estesp estesp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@estesp estesp merged commit 666f4a0 into containerd:master May 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants