You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: lib.rs
    path of file: ./repos/peerdb/nexus/peer-connections/src
    
    the code of the file until where you have to start completion: use std::{str::FromStr, sync::Arc};

use anyhow::Context;
use deadpool_postgres::{
    
    async fn record_end(&self, token: &TrackingToken<'_>) -> anyhow::Result<()> {
        let conn = self
            .peer_connections
            .pool
            .get()
            .await
            .context("Failed to get connection from pool")?;
        conn.execute(
            "UPDATE peer_connections SET closed_at = NOW() WHERE id = $1",
            &[&token.trace_id.unwrap()],
        )
        .await
        .context("Failed to update peer_connections")?;
        Ok(())
    }