We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 446ad17 commit 64f6eaaCopy full SHA for 64f6eaa
database/src/pool/postgres.rs
@@ -772,6 +772,19 @@ where
772
.unwrap();
773
}
774
async fn record_benchmark(&self, krate: &str, supports_stable: bool) {
775
+ if let Some(r) = self
776
+ .conn()
777
+ .query_opt(
778
+ "select stabilized from benchmark where name = $1",
779
+ &[&krate],
780
+ )
781
+ .await
782
+ .unwrap()
783
+ {
784
+ if r.get::<_, bool>(0) == supports_stable {
785
+ return;
786
+ }
787
788
self.conn()
789
.execute(
790
"insert into benchmark (name, stabilized) VALUES ($1, $2)
0 commit comments