thrift-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roberto Aloi <>
Subject Re: Function clause on "oneway_void" [Thrift-Erlang]
Date Wed, 08 Sep 2010 09:43:33 GMT
Hi there,

> Would that work?  You said you were returning {ok, pid()}, not {reply,
> Whatever}.

That works cause my service was based on Todd's skeleton for Erlang:

where the handle_function is wrapping the reply into a tuple if it is different from 'ok'.
If this is desirable, I guess that's another story.

> How about just changing "ok when ReplyType == oneway_void"
> to "_ when ReplyType == oneway_void"?

Sure, but you still might want to report the event (a non expected reply is something I would
like to identify, not simply ignore).
But yes, that will definitely work.

Thanks for this,

Roberto Aloi
University of Kent - Erlang Solutions Ltd.
Twitter: @prof3ta

View raw message