Skip to content

Modules using gRPC bidirectional requests may not be properly implemented #42

Description

@AliabbasMerchant

Not sure, never tested. This is just a causal observation

self.async_result = self.run_pool.apply_async(self._run_client, (self.id,))
options = obj_to_utf8_bytes({"skipInitial": self.skip_initial})
self.pool.map(self._send, (
server_pb2.RealTimeRequest(token=self.token, dbType=self.db_type, project=self.project_id,
                           group=self.collection, options=options,
                           type=constants.TypeRealtimeSubscribe, id=self.id,
                           where=obj_to_utf8_bytes(self.find)),))

This is done everytime subscribe is called.
This may result in self.subscription being overwritten everytime, resulting in wrong functions being called

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions