File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
site/src/request_handlers Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -1039,9 +1039,13 @@ impl BenchmarkRequest {
10391039 }
10401040}
10411041
1042+ /// Result of inserting into the database
10421043#[ derive( Debug , Clone , PartialEq ) ]
10431044pub enum BenchmarkRequestInsertResult {
1045+ /// The request was inserted into the database and is a unique instance
10441046 Inserted ,
1047+ /// The request was not inserted into the database as something else already
1048+ /// existed that clashed with the unique clause
10451049 NothingInserted ,
10461050}
10471051
Original file line number Diff line number Diff line change @@ -102,7 +102,8 @@ async fn record_try_benchmark_request_without_artifacts(
102102 log:: info!(
103103 "Failed to insert try benchmark request, a request for PR`#{pr}` already exists"
104104 ) ;
105- format ! ( "This pull request was already queued before and is awaiting a try build to finish." )
105+ "This pull request was already queued before and is awaiting a try build to finish."
106+ . to_string ( )
106107 }
107108 Ok ( BenchmarkRequestInsertResult :: Inserted ) => get_awaiting_on_bors_message ( ) ,
108109 Err ( e) => {
You can’t perform that action at this time.
0 commit comments