fix: fixed typo (#2542)

This commit is contained in:
vkamn
2026-04-30 15:46:15 +08:00
committed by GitHub
parent 847bb6923b
commit fd5051262d

View File

@@ -287,7 +287,8 @@ QFuture<QPair<ErrorCode, QByteArray>> GatewayController::postAsync(const QString
} }
std::random_device randomDevice; std::random_device randomDevice;
std::mt19937 generator(randomDevice()); std::mt19937 generator(randomDevice());
std::shuffle(baseUrls.begin(), baseUrls.end(), generator); std::shuffle(primaryBaseUrls.begin(), primaryBaseUrls.end(), generator);
std::shuffle(fallbackBaseUrls.begin(), fallbackBaseUrls.end(), generator);
auto appendStorageUrls = [&serviceType, &userCountryCode](const QStringList &baseUrls, QStringList &target) { auto appendStorageUrls = [&serviceType, &userCountryCode](const QStringList &baseUrls, QStringList &target) {
if (!serviceType.isEmpty()) { if (!serviceType.isEmpty()) {