fix: cargo fmt and CI migration step#2
Open
yusuftomilola wants to merge 2 commits into
Open
Conversation
…umentExistenceCheckEndpoint - Add GET /exists/:hash — lightweight boolean existence check (CT-13) - Checks Redis cache first (same key as verify endpoint) - Falls back to Stellar verify_hash on cache miss - Caches positive results permanently, negative with 60s TTL - Validates hash with HashValidator::validate_sha256 (400 on invalid) - Add POST /revoke/batch — concurrent batch revocation (CT-12) - Accepts JSON array of up to 20 RevokeRequest objects - Returns 400 for empty or >20 item arrays - Processes all revocations concurrently via join_all - Per-item result includes: document_hash, success, tx_hash, error - Partial success allowed; duplicate/already-revoked reported as errors Closes CodeGirlsInc#544, CodeGirlsInc#545
88d4fa7 to
38374e3
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes two CI failures in PR CodeGirlsInc#592:
use crate::hash_validator::HashValidator;before groupeduse crate::{...}imports to satisfycargo fmt --checknpm run migration:runstep from CI workflow since TypeORM usessynchronize: true(auto-sync)