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: channel.rs
    path of file: ./repos/hash/apps/hash-graph/libs/graph/src/snapshot/entity
    
    the code of the file until where you have to start completion: use std::{
    pin::Pin,
    task::{ready, Context, Poll},
};

use authorization::schema::EntityRelationAndSubject;
use error_stack::{Report, ResultExt};
use futures::{
    channel::mpsc::{self, Receiver, Sender},
    stream::{select_all, BoxStream, SelectAll},
    Sink, SinkExt, Stream, StreamExt,
};
use graph_types::{knowledge::entity::EntityUuid, ontology::OntologyTypeVersion};

use crate::snapshot::{
    entity::{
        table::{EntityDraftRow, EntityEmbeddingRow},
        EntityEditionRow, EntityIdRow, EntityLinkEdgeRow, EntityRowBatch,
        EntityTemporalMetadataRow,
    },
    EntitySnapshotRecord, SnapshotRestoreError,
};

/// A sink to insert
    
    fn poll_close(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>> {
        ready!(self.id.poll_close_unpin(cx))
            .change_context(SnapshotRestoreError::Read)
            .attach_printable("could not close id sender")?;
        ready!(self.draft.poll_close_unpin(cx))
            .change_context(SnapshotRestoreError::Read)
            .attach_printable("could not close draft sender")?;
        ready!(self.edition.poll_close_unpin(cx))
            .change_context(SnapshotRestoreError::Read)
            .attach_printable("could not close edition sender")?;
        ready!(self.temporal_metadata.poll_close_unpin(cx))
            .change_context(SnapshotRestoreError::Read)
            .attach_printable("could not close temporal metadata sender")?;
        ready!(self.links.poll_close_unpin(cx))
            .change_context(SnapshotRestoreError::Read)
            .attach_printable("could not close entity link edges sender")?;

        Poll::Ready(Ok(()))
    }