Skip to main content

resolve

Function resolve 

Source
pub async fn resolve<ApiClient>(
    api: &ApiClientWrapper<ApiClient>,
    db: &impl DbQuery,
    allow_offline: bool,
) -> Result<ServerConfigurationHandle, ServerConfigError>
where ApiClient: XmtpBackendClient,
Expand description

Resolve the snapshot build will hold.

The minimum-version check is not here: it applies to the snapshot the client ends up holding, which may have come from a caller-supplied provider that never reached this function.

Runs before any identity work. Offline, it never awaits a network call, so build_offline still completes without polling a pending future.