Commit 598f4e2e authored by Ian Jackson's avatar Ian Jackson
Browse files

arti: BridgesConfig is evidently not too high up

Since apparently it was possible to write all the other code without
moving it.
parent a74ee097
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -210,14 +210,6 @@ impl StorageConfig {

/// Configuration for bridges and pluggable transports
//
// TODO pt-client: This type is too high up the stack:
// It is likely that this type will want to move much lower down in the crate
// stack so that (eg) guardmgr can actually do something useful with the `BridgeList`
// and resolve the situation with `enabled` and so on.
//
// Possibly guardmgr will want to take an `Arc<dyn AsRef<BridgesConfig>>` or something;
// that would enable passing it an "extract" from the config without actually copying it.
//
// We leave this as an empty struct even when bridge support is disabled,
// as otherwise the default config file would generate an unknown section warning.
#[derive(Debug, Clone, Builder, Eq, PartialEq)]