services: make channelz constructor static (#4334)

Right now this is inaccessible to services.
This commit is contained in:
zpencer 2018-04-13 14:10:50 -07:00 committed by GitHub
parent c50a57cd52
commit 1d5ed78c8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ public final class ChannelzService extends ChannelzGrpc.ChannelzImplBase {
private final Channelz channelz; private final Channelz channelz;
private final int maxPageSize; private final int maxPageSize;
public ChannelzService newInstance(int maxPageSize) { public static ChannelzService newInstance(int maxPageSize) {
return new ChannelzService(Channelz.instance(), maxPageSize); return new ChannelzService(Channelz.instance(), maxPageSize);
} }