Commit 9c2ba0a 1 parent 83568b7 commit 9c2ba0a Copy full SHA for 9c2ba0a
File tree 3 files changed +8
-3
lines changed
3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 1
1
# Note that version is also in pyproject.toml
2
- __version__ = "4.4-dev "
2
+ __version__ = "4.4.0b1 "
3
3
ENV_MAIN_PROCESS_PID = "IRRD_MAIN_PROCESS_PID"
4
4
META_KEY_HTTP_CLIENT_IP = "HTTP-Client-IP"
Original file line number Diff line number Diff line change @@ -66,8 +66,13 @@ async def startup():
66
66
try :
67
67
app .state .database_handler = DatabaseHandler (readonly = True )
68
68
app .state .preloader = Preloader (enable_queries = True )
69
+ async_redis_prefix = ""
70
+ if get_setting ("redis_url" ).startswith ("redis://" ):
71
+ async_redis_prefix = "async+"
72
+ elif get_setting ("redis_url" ).startswith ("unix://" ):
73
+ async_redis_prefix = "async+redis+"
69
74
app .state .rate_limiter_storage = limits .storage .storage_from_string (
70
- "async+" + get_setting ("redis_url" ),
75
+ async_redis_prefix + get_setting ("redis_url" ),
71
76
protocol_version = 2 ,
72
77
)
73
78
app .state .rate_limiter = limits .aio .strategies .MovingWindowRateLimiter (app .state .rate_limiter_storage )
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ name = "irrd"
5
5
[tool .poetry ]
6
6
name = " irrd"
7
7
# Note that version is also in irrd/__init__.py
8
- version = " 4.4-dev "
8
+ version = " 4.4.0b1 "
9
9
description = " Internet Routing Registry daemon (IRRd)"
10
10
authors = [
" Reliably Coded for NTT Ltd. and others <[email protected] >" ]
11
11
license = " BSD"
You can’t perform that action at this time.
0 commit comments