Skip to content

Commit

Permalink
unbreak the thing
Browse files Browse the repository at this point in the history
  • Loading branch information
internet-diglett committed Aug 21, 2024
1 parent c044b8c commit be60f15
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions nexus/db-queries/src/db/datastore/bgp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ impl DataStore {

let conn = self.pool_connection_authorized(opctx).await?;
let err = OptionalError::new();
self.transaction_retry_wrapper("bgp_config_set")
self.transaction_retry_wrapper("bgp_config_create")
.transaction(&conn, |conn| {

let err = err.clone();
Expand Down Expand Up @@ -213,7 +213,7 @@ impl DataStore {
})
.await
.map_err(|e|{
let msg = "bgp_config_set failed";
let msg = "bgp_config_create failed";
if let Some(err) = err.take() {
error!(opctx.log, "{msg}"; "error" => ?err);
err
Expand Down
2 changes: 1 addition & 1 deletion nexus/db-queries/src/db/datastore/switch_port.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1671,7 +1671,7 @@ mod test {
shaper: None,
};

datastore.bgp_config_set(&opctx, &bgp_config).await.unwrap();
datastore.bgp_config_create(&opctx, &bgp_config).await.unwrap();

let settings = SwitchPortSettingsCreate {
identity: IdentityMetadataCreateParams {
Expand Down
2 changes: 1 addition & 1 deletion nexus/src/app/rack.rs
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ impl super::Nexus {

match self
.db_datastore
.bgp_config_set(
.bgp_config_create(
&opctx,
&BgpConfigCreate {
identity: IdentityMetadataCreateParams {
Expand Down

0 comments on commit be60f15

Please sign in to comment.