pub fn record_prover_stop(&self, prover_id: i32) -> QueryResult<()> {
        // FIXME(popzxc): It seems that it isn't actually checked if the prover has been stopped
        // anywhere. And also it doesn't seem that prover can be restored from the stopped
        // state.

        use crate::schema::active_provers::dsl::*;

        let target = active_provers.filter(id.eq(prover_id));
        diesel::update(target)
            .set(stopped_at.eq(now))
            .execute(self.0.conn())
            .map(|_| ())
    }
/// Marks the prover as stopped.
Marks the prover as stopped.
Marks the prover as stopped .
pub fn record_prover_stop(&self, prover_id: i32) -> QueryResult<()> {
        // FIXME(popzxc): It seems that it isn't actually checked if the prover has been stopped
        // anywhere. And also it doesn't seem that prover can be restored from the stopped
        // state.
        use crate::schema::active_provers::dsl::*;
        let target = active_provers.filter(id.eq(prover_id));
        diesel::update(target)
            .set(stopped_at.eq(now))
            .execute(self.0.conn())
            .map(|_| ())
    }
pub fn record_prover_stop ( & self , prover_id : i32 ) -> QueryResult < ( ) > { // FIXME(popzxc): It seems that it isn't actually checked if the prover has been stopped // anywhere. And also it doesn't seem that prover can be restored from the stopped // state. use crate :: schema :: active_provers :: dsl :: * ; let target = active_provers . filter ( id . eq ( prover_id ) ) ; diesel :: update ( target ) . set ( stopped_at . eq ( now ) ) . execute ( self . 0 . conn ( ) ) . map ( | _ | ( ) ) }
Marks the prover as stopped.
Marks the prover as stopped .
&self
prover_id
i32