mirror of https://github.com/grpc/grpc-java.git
services: make channelz constructor static (#4334)
Right now this is inaccessible to services.
This commit is contained in:
parent
c50a57cd52
commit
1d5ed78c8f
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue