Skip to content

Commit

Permalink
Remove references to internal GRPC code (#168)
Browse files Browse the repository at this point in the history
* Create writeback.md

* Update pointset.md with more device behavior

- Added some clarifications on device behavior for telemetry/config
- Also renamed some writeback-related fields

* Remove references to internal GRPC code
  • Loading branch information
rniemo-g authored Jul 15, 2021
1 parent 0ecbe92 commit eea358d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
import com.google.pubsub.v1.PubsubMessage;
import com.google.pubsub.v1.SeekRequest;
import com.google.pubsub.v1.Subscription;
import io.grpc.LoadBalancerRegistry;
import io.grpc.internal.PickFirstLoadBalancerProvider;
import java.util.HashMap;
import java.util.Map;
import java.util.TreeMap;
Expand Down Expand Up @@ -54,11 +52,6 @@ public class PubSubClient implements MessagePublisher {
private final Subscriber subscriber;
private final Publisher publisher;

{
// Why this needs to be done there is no rhyme or reason.
LoadBalancerRegistry.getDefaultRegistry().register(new PickFirstLoadBalancerProvider());
}

public PubSubClient(String projectId, String registryId, String name) {
try {
this.projectId = projectId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
import com.google.protobuf.ByteString;
import com.google.pubsub.v1.ProjectTopicName;
import com.google.pubsub.v1.PubsubMessage;
import io.grpc.LoadBalancerRegistry;
import io.grpc.internal.PickFirstLoadBalancerProvider;

import java.io.File;
import java.nio.charset.Charset;
Expand All @@ -20,11 +18,6 @@ public class PubSubPusher {
private final Publisher publisher;
private final String outTopic;

{
// Why this needs to be done there is no rhyme or reason.
LoadBalancerRegistry.getDefaultRegistry().register(new PickFirstLoadBalancerProvider());
}

public PubSubPusher(String projectId, String outTopic) {
try {
this.outTopic = outTopic;
Expand Down

0 comments on commit eea358d

Please sign in to comment.