parseablehq / parseable

Open Source ElasticSearch Alternative. Parseable helps you search and get insights from your logs in the most simple way possible.
https://parseable.com
GNU Affero General Public License v3.0
1.87k stars 105 forks source link

fix: OAuth error #934

Closed nikhilsinhaparseable closed 1 week ago

nikhilsinhaparseable commented 1 week ago

issue: already borrowed: BorrowMutError when try login with oauth because of req.connection_info() which makes an immutable borrow of req method extract_session_key_from_req() also borrows req because of which the server panics with the error

fix is to use connection_info().clone() to avoid multiple borrows