Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
postfix-mta-sts-resolver
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
Snawoot
postfix-mta-sts-resolver
Commits
9c487098
Unverified
Commit
9c487098
authored
3 years ago
by
Koichi MATSUMOTO
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix TypeError
Fix TypeError
parent
b8ffa07a
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
postfix_mta_sts_resolver/redis_cache.py
+2
-1
2 additions, 1 deletion
postfix_mta_sts_resolver/redis_cache.py
with
2 additions
and
1 deletion
postfix_mta_sts_resolver/redis_cache.py
+
2
−
1
View file @
9c487098
...
@@ -35,7 +35,8 @@ class RedisCache(BaseCache):
...
@@ -35,7 +35,8 @@ class RedisCache(BaseCache):
self
.
_pool
=
None
self
.
_pool
=
None
async
def
setup
(
self
):
async
def
setup
(
self
):
self
.
_pool
=
await
aioredis
.
from_url
(
**
self
.
_opts
)
url
=
self
.
_opts
[
'
address
'
]
self
.
_pool
=
await
aioredis
.
from_url
(
url
,
**
self
.
_opts
)
async
def
get
(
self
,
key
):
async
def
get
(
self
,
key
):
assert
self
.
_pool
is
not
None
assert
self
.
_pool
is
not
None
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment