Skip to content

daemon/logger/journald: simplify readers field#37819

Merged
cpuguy83 merged 1 commit intomoby:masterfrom
kolyshkin:journald-cleanup
Sep 13, 2018
Merged

daemon/logger/journald: simplify readers field#37819
cpuguy83 merged 1 commit intomoby:masterfrom
kolyshkin:journald-cleanup

Conversation

@kolyshkin
Copy link
Copy Markdown
Contributor

As in other similar drivers (jsonlog, local), use a set
(i.e. map[whatever]struct{}), making the code simpler.

While at it, make sure we remove the reader from the set
after calling ProducerGone() on it.

As in other similar drivers (jsonlog, local), use a set
(i.e. `map[whatever]struct{}`), making the code simpler.

While at it, make sure we remove the reader from the set
after calling `ProducerGone()` on it.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
@codecov
Copy link
Copy Markdown

codecov bot commented Sep 11, 2018

Codecov Report

❗ No coverage uploaded for pull request base (master@77faf15). Click here to learn what that means.
The diff coverage is 0%.

@@            Coverage Diff            @@
##             master   #37819   +/-   ##
=========================================
  Coverage          ?   36.13%           
=========================================
  Files             ?      610           
  Lines             ?    45054           
  Branches          ?        0           
=========================================
  Hits              ?    16282           
  Misses            ?    26532           
  Partials          ?     2240

Copy link
Copy Markdown
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Copy Markdown
Member

@cpuguy83 cpuguy83 left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants