Skip to content

Commit cf9611c

Browse files
committed
add example to docstring
Signed-off-by: Matej Ohradzansky <matohradzansky@gmail.com>
1 parent 6094cad commit cf9611c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

crossplane/function/runtime.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,9 @@ def serve(
8484
address: The address at which to listen for requests.
8585
creds: The credentials used to authenticate requests.
8686
insecure: Serve insecurely, without credentials or encryption.
87-
options: Additional gRPC server options.
87+
options: Additional gRPC server options. Eg. set max receive message
88+
size to 5Mb (default is 4Mb):
89+
[("grpc.max_receive_message_length", 1024 * 1024 * 5)]
8890
8991
Raises:
9092
ValueError if creds is None and insecure is False.

0 commit comments

Comments
 (0)