mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
fix some test bugs when dispatcher initialize by multi threads
This commit is contained in:
@ -3,11 +3,11 @@
|
||||
{%- endif -%}
|
||||
|
||||
class {{ event_class }} {
|
||||
{{ input_deserializer }} params;
|
||||
{{ event_class }}(this.params);
|
||||
{{ input_deserializer }} request;
|
||||
{{ event_class }}(this.request);
|
||||
|
||||
Future<Either<{{ output_deserializer }}, FlowyError>> send() {
|
||||
return paramsToBytes(params).fold(
|
||||
return requestToBytes(request).fold(
|
||||
(bytes) {
|
||||
final request = FFIRequest.create()
|
||||
..event = {{ event }}.toString()
|
||||
|
Reference in New Issue
Block a user