refactor: separate adapter-to-scheme lookup table

This commit is contained in:
Steven Arcangeli 2023-01-03 22:09:20 -08:00
parent 2e6d68453f
commit 1879339442
3 changed files with 11 additions and 11 deletions

View file

@ -81,7 +81,7 @@ local _connections = {}
---@param allow_retry nil|boolean
local function get_connection(url, allow_retry)
local res = parse_url(url)
res.scheme = config.adapters.ssh
res.scheme = config.adapter_to_scheme.ssh
res.path = ""
local key = url_to_str(res)
local conn = _connections[key]