use function

This commit is contained in:
Robin Müller 2022-11-27 14:30:29 +01:00
parent 5981495fa4
commit 02817e8bf3
No known key found for this signature in database
GPG Key ID: FC76078F520434A5

View File

@ -54,12 +54,7 @@ impl PusServiceProvider for PusReceiver {
pus_tc: &PusTc, pus_tc: &PusTc,
) -> Result<(), Self::Error> { ) -> Result<(), Self::Error> {
let init_token = self.verif_reporter.add_tc(pus_tc); let init_token = self.verif_reporter.add_tc(pus_tc);
self.stamper self.update_time_stamp();
.update_from_now()
.expect("Updating time for time stamp failed");
self.stamper
.write_to_bytes(&mut self.time_stamp)
.expect("Writing time stamp failed");
let accepted_token = self let accepted_token = self
.verif_reporter .verif_reporter
.acceptance_success(init_token, &self.time_stamp) .acceptance_success(init_token, &self.time_stamp)