Commit 4e40bb7c37e544c64ce2cc41cca62e2425687e67
1 parent
e753f5e8
NetServices : make TIMESTAMP not mandatory for server
Showing
1 changed file
with
6 additions
and
6 deletions
Show diff stats
calexium_lib/net_services/CXM_generic_client.anubis
| @@ -131,12 +131,12 @@ define Maybe($T) | @@ -131,12 +131,12 @@ define Maybe($T) | ||
| 131 | { | 131 | { |
| 132 | failure then logger("["+queue.get_name(unique)+"]: requesting service RESULT not found");failure, | 132 | failure then logger("["+queue.get_name(unique)+"]: requesting service RESULT not found");failure, |
| 133 | success(result) then | 133 | success(result) then |
| 134 | - if find_string(msg, "TIMESTAMP") is | ||
| 135 | - { | ||
| 136 | - failure then logger("["+queue.get_name(unique)+"]: requesting service TIMESTAMP not found");failure, | ||
| 137 | - success(timestamp) then | ||
| 138 | - handler(queue, timestamp) | ||
| 139 | - } | 134 | + with timestamp = if find_string(msg, "TIMESTAMP") is |
| 135 | + { | ||
| 136 | + failure then logger("["+queue.get_name(unique)+"]: requesting service TIMESTAMP not found");failure, | ||
| 137 | + success(timestamp) then timestamp | ||
| 138 | + }, | ||
| 139 | + handler(queue, timestamp) | ||
| 140 | } | 140 | } |
| 141 | else | 141 | else |
| 142 | logger("["+queue.get_name(unique)+"]: requested service started won't start");failure | 142 | logger("["+queue.get_name(unique)+"]: requested service started won't start");failure |