The garbage collector warning since AuthenticationBackend enabled. #628
Unanswered
NightSkySK
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm pretty sure my issue is related to my code and Python skills, however, I'm struggling to find the correct way. I hope that the community here can help me.
my
authenticate_user
function requiresession
:normally in endpoint, I do and it doesn't cause any Garbage collector warning.
How ever in
login
function have take request as instance variable, so I need to call take session within the function, which only way I found it would work is following:And this is how I get session:
I ve added the finally: await session close() as solution to that, but it doesn't solve my garbage collector warning. Can you suggest me something?
Beta Was this translation helpful? Give feedback.
All reactions