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

Why GrpcShardingService.layer returns Unit, it breaks type safe #57

Closed
liewhite opened this issue Feb 13, 2023 · 2 comments
Closed

Why GrpcShardingService.layer returns Unit, it breaks type safe #57

liewhite opened this issue Feb 13, 2023 · 2 comments

Comments

@liewhite
Copy link

Missing GrpcShardingService.live provide will cause exception at runtime

@ghostdogpr
Copy link
Collaborator

This is a normal pattern with ZIO 2: the provide macro will warn you when you provide layers that are not used, but layers that return Unit are accepted. The service itself it not used by anything so we don't need to return it.

@liewhite
Copy link
Author

Tks for your explanation, close the issue.

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

No branches or pull requests

2 participants