Skip to content
This repository
Browse code

KAZOO-1: update spec for amqp worker

  • Loading branch information...
commit 54afc1c8ac5edadcdb1e53c3544d5c03f9264445 1 parent b5954ef
James Aimonetti authored
4  lib/whistle_amqp-1.0.0/src/wh_amqp_worker.erl
@@ -133,12 +133,14 @@ call(Srv, Req, PubFun, VFun, Timeout) ->
133 133
 
134 134
 -spec call_collect(server_ref(), api_terms(), publish_fun()) ->
135 135
                           {'ok', wh_json:objects()} |
  136
+                          {'timeout', wh_json:objects()} |
136 137
                           {'error', _}.
137 138
 call_collect(Srv, Req, PubFun) ->
138 139
     call_collect(Srv, Req, PubFun, default_timeout()).
139 140
 
140 141
 -spec call_collect(server_ref(), api_terms(), publish_fun(), timeout_or_until()) ->
141 142
                           {'ok', wh_json:objects()} |
  143
+                          {'timeout', wh_json:objects()} |
142 144
                           {'error', _}.
143 145
 call_collect(Srv, Req, PubFun, UntilFun) when is_function(UntilFun) ->
144 146
     call_collect(Srv, Req, PubFun, UntilFun, default_timeout());
@@ -151,7 +153,7 @@ call_collect(Srv, Req, PubFun, Timeout) ->
151 153
 
152 154
 -spec call_collect(server_ref(), api_terms(), publish_fun(), collect_util(), wh_timeout()) -> 
153 155
                           {'ok', wh_json:objects()} |
154  
-                          {'timeout', wh_json:object()} |
  156
+                          {'timeout', wh_json:objects()} |
155 157
                           {'error', _}.
156 158
 call_collect(Srv, Req, PubFun, {Whapp, VFun}, Timeout) ->
157 159
     call_collect(Srv, Req, PubFun, collect_from_whapp_or_validate(Whapp, VFun), Timeout);

0 notes on commit 54afc1c

Please sign in to comment.
Something went wrong with that request. Please try again.