Skip to content

Commit

Permalink
Refactor code
Browse files Browse the repository at this point in the history
  • Loading branch information
cunla committed Jun 4, 2022
1 parent 2a3f5d2 commit e8b2d9b
Show file tree
Hide file tree
Showing 3 changed files with 2,730 additions and 2,726 deletions.
6 changes: 3 additions & 3 deletions fakeredis/_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

import async_timeout

from . import _server
from . import _helpers


class AsyncFakeSocket(_server.FakeSocket):
class AsyncFakeSocket(_helpers.FakeSocket):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.responses = asyncio.Queue()
Expand Down Expand Up @@ -48,4 +48,4 @@ def callback():
self._db.add_change_callback(callback)
self.pause()
loop.create_task(self._async_blocking(timeout, func, event, callback))
return _server.NoResponse()
return _helpers.NoResponse()
Loading

0 comments on commit e8b2d9b

Please sign in to comment.