Skip to main content

get_latest_commit

Function get_latest_commit 

Source
pub(crate) async fn get_latest_commit(
    __arg0: State<AppState>,
    peer: Peer,
    headers: HeaderMap,
    query: Result<Query<DidRequest>, QueryRejection>,
) -> Response
Expand description

GET /xrpc/com.atproto.sync.getLatestCommit

The commit CID and revision the repository is currently at, which is what a consumer compares its own position against. It costs what an export costs, because a derived repository has to be rebuilt to be named; what it saves the caller is the blocks.