Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify a bit ZPool code #6271

Merged
merged 1 commit into from
Jan 20, 2022
Merged

Simplify a bit ZPool code #6271

merged 1 commit into from
Jan 20, 2022

Conversation

guizmaii
Copy link
Member

No description provided.

override def initial: URIO[Clock, State] =
for {
clock <- ZIO.service[Clock.Service]
now <- clock.instant
ref <- Ref.make(now)
} yield (Has(clock), ref)
Copy link
Member Author

Choose a reason for hiding this comment

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

Just removing the useless Has here

@adamgfraser adamgfraser merged commit 4ca3eb5 into zio:master Jan 20, 2022
@guizmaii guizmaii deleted the backport_zpool branch January 20, 2022 06:40
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.

None yet

2 participants