Improved RabbitMQ handling
- Switched to async because it offers easy automatic reconnect features on connection failure - Adjusted notification path to reflect that change - Added in memory message queue if RMQ is not reachable
This commit is contained in:
1 parent
c0fcdaeb4f
commit
873e7e7854
5 files changed
+104
-120
No files matched your search
+3
-3
@@ -12,9 +12,9 @@ def verify_api_key(api_key: str, hashed: str) -> bool:
|
||||
return False
|
||||
|
||||
if __name__=="__main__":
|
||||
plain_key = "super-secret-api-key"
|
||||
#hashed_key = hash_api_key(plain_key)
|
||||
hashed_key = '$argon2id$v=19$m=65536,t=3,p=4$vqU+MRafVW1b8AtF+zHb0w$p1J4Gyb0jhlVtKgYyjTITxfU97YaayeS3s3qFFP5sVM'
|
||||
plain_key = "password"
|
||||
hashed_key = hash_api_key(plain_key)
|
||||
#hashed_key = '$argon2id$v=19$m=65536,t=3,p=4$vqU+MRafVW1b8AtF+zHb0w$p1J4Gyb0jhlVtKgYyjTITxfU97YaayeS3s3qFFP5sVM'
|
||||
|
||||
print("Hashed API Key:", hashed_key)
|
||||
print("Verification:", verify_api_key(plain_key, hashed_key))
|
||||
Reference in new issue
Block a user