Loading CHANGES.md +1 −0 Original line number Diff line number Diff line Loading @@ -6,6 +6,7 @@ This section will document changes to the library since the last release - Added getVersion and getVersionAsync to the library. ## Bug Fixes - AsyncClient returns NotConnected exception when an operation is attempted on a client before calling connect(). - Lowered default number of keys asked on ranges to 200 (ASKOVAD-287) - Fixed typo on baset test case (Merge #2, contributed by @zaitcev) Loading kinetic/baseasync.py +8 −0 Original line number Diff line number Diff line Loading @@ -141,7 +141,12 @@ class BaseAsync(Client): # transmit self.network_send(header, value) def _process(self, op, *args, **kwargs): if not self.isConnected: raise common.NotConnected("Must call connect() before sending operations.") super(BaseAsync, self)._process(op, *args, **kwargs) def _processAsync(self, op, onSuccess, onError, *args, **kwargs): if not self.isConnected: raise common.NotConnected("Must call connect() before sending operations.") def innerSuccess(header, value): onSuccess(op.parse(header, value)) Loading Loading @@ -183,6 +188,9 @@ class BaseAsync(Client): def flushAsync(self, onSuccess, onError, *args, **kwargs): self._processAsync(operations.Flush, onSuccess, onError, *args, **kwargs) def noopAsync(self, onSuccess, onError, *args, **kwargs): self._processAsync(operations.Noop, onSuccess, onError, *args, **kwargs) Loading
CHANGES.md +1 −0 Original line number Diff line number Diff line Loading @@ -6,6 +6,7 @@ This section will document changes to the library since the last release - Added getVersion and getVersionAsync to the library. ## Bug Fixes - AsyncClient returns NotConnected exception when an operation is attempted on a client before calling connect(). - Lowered default number of keys asked on ranges to 200 (ASKOVAD-287) - Fixed typo on baset test case (Merge #2, contributed by @zaitcev) Loading
kinetic/baseasync.py +8 −0 Original line number Diff line number Diff line Loading @@ -141,7 +141,12 @@ class BaseAsync(Client): # transmit self.network_send(header, value) def _process(self, op, *args, **kwargs): if not self.isConnected: raise common.NotConnected("Must call connect() before sending operations.") super(BaseAsync, self)._process(op, *args, **kwargs) def _processAsync(self, op, onSuccess, onError, *args, **kwargs): if not self.isConnected: raise common.NotConnected("Must call connect() before sending operations.") def innerSuccess(header, value): onSuccess(op.parse(header, value)) Loading Loading @@ -183,6 +188,9 @@ class BaseAsync(Client): def flushAsync(self, onSuccess, onError, *args, **kwargs): self._processAsync(operations.Flush, onSuccess, onError, *args, **kwargs) def noopAsync(self, onSuccess, onError, *args, **kwargs): self._processAsync(operations.Noop, onSuccess, onError, *args, **kwargs)