Skip to content

Commit

Permalink
Clippy, and remove local env files
Browse files Browse the repository at this point in the history
  • Loading branch information
bnaecker committed Feb 15, 2024
1 parent e7b6f29 commit f3653c5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions nexus/db-queries/src/db/queries/network_interface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -646,9 +646,11 @@ impl NextMacAddress {
}
};
let generator = DefaultShiftGenerator::new(base, max_shift, min_shift)
.expect(&format!(
.unwrap_or_else(|| {
panic!(
"invalid min shift ({min_shift}) or max_shift ({max_shift})"
));
)
});
Self { inner: NextItem::new_scoped(generator, vpc_id) }
}
}
Expand Down
2 changes: 1 addition & 1 deletion smf/sled-agent/non-gimlet/config-rss.toml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ bgp = []
# You can configure multiple uplinks by repeating the following stanza
[[rack_network_config.ports]]
# Routes associated with this port.
routes = [{nexthop = "192.168.1.1", destination = "0.0.0.0/0"}]
routes = [{nexthop = "192.168.1.199", destination = "0.0.0.0/0"}]
# Addresses associated with this port.
addresses = ["192.168.1.30/24"]
# Name of the uplink port. This should always be "qsfp0" when using softnpu.
Expand Down
2 changes: 1 addition & 1 deletion smf/sled-agent/non-gimlet/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ data_links = ["net0", "net1"]
request_body_max_bytes = 2_147_483_648

[log]
level = "debug"
level = "info"
mode = "file"
path = "/dev/stdout"
if_exists = "append"

0 comments on commit f3653c5

Please sign in to comment.