We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f6298a commit 1705535Copy full SHA for 1705535
src/worker/environment.rs
@@ -79,6 +79,10 @@ impl Environment {
79
) -> Result<&typosquat::Cache, typosquat::CacheError> {
80
// We have to pass conn back in here because the caller might be in a transaction, and
81
// getting a new connection here to query crates can result in a deadlock.
82
+ //
83
+ // Note that this intentionally won't retry if the initial call to `from_env` fails:
84
+ // typosquatting checks aren't on the critical path for publishing, and a warning will be
85
+ // generated if initialising the cache fails.
86
self.typosquat_cache
87
.get_or_init(|| typosquat::Cache::from_env(conn))
88
.as_ref()
0 commit comments