You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,13 +27,14 @@ For the gRPC client and server please follow these requirements:
27
27
- support [RFC 3986 URI scheme](https://github.com/grpc/grpc-go/issues/1911); lookout-sdk includes helpers for this:
28
28
- go: using `pb.ToGoGrpcAddress` and `pb.Listen`.
29
29
- python: using `lookout.sdk.grpc.to_grpc_address`.
30
+
- use insecure connection:
31
+
- currently lookout expects to use insecure gRPC connections, as provided by `pb.DialContext`
32
+
- python: run server using `server.add_insecure_port(address)` ([example](https://github.com/src-d/lookout-sdk/blob/master/examples/language-analyzer.py#L63)).
30
33
31
34
## DataService
32
35
33
36
When DataService is being dialed, you should:
34
37
35
-
- disable secure connection:
36
-
- python: using `server.add_insecure_port(address)` ([example](https://github.com/src-d/lookout-sdk/blob/master/examples/language-analyzer.py#L63)).
37
38
- turn off [gRPC fail-fast](https://github.com/grpc/grpc/blob/master/doc/wait-for-ready.md) mode if your analyzer creates a connection to DataServer before it was actually started. This way the RPCs are queued until the chanel is ready:
0 commit comments