Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 49899c8

Browse files
author
Paulo SantAnna
committed
replaced localtime example as it does not return a serializable response.
1 parent 3778e0a commit 49899c8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,15 +108,15 @@ your server to act as a kind of worker, and connect to a hub or queue which
108108
will dispatch requests. You can achieve this by swapping "--bind" and
109109
"--connect"::
110110

111-
$ zerorpc --bind tcp://*:1234 localtime
111+
$ zerorpc --bind tcp://*:1234 strftime %Y/%m/%d
112112

113-
We now have "something" wanting to call the "localtime" function, and waiting
113+
We now have "something" wanting to call the "strftime" function, and waiting
114114
for a worker to connect to it. Let's start the worker::
115115

116-
$ zerorpc --server tcp://*:1234 time
116+
$ zerorpc --server tcp://127.0.0.1:1234 time
117117

118118
The worker will connect to the listening client and ask him "what should I
119-
do?"; the client will send the "localtime" function call; the worker will
119+
do?"; the client will send the "strftime" function call; the worker will
120120
execute it and return the result. The first program will display the
121121
local time and exit. The worker will remain running.
122122

0 commit comments

Comments
 (0)