Remove unused test code.
- make naming consistent with the kernel module. - better distribution of functionality from src/wireguard.rs - more consistent "import pattern" throughout the project. - remove unused test code.
This commit is contained in:
@@ -125,11 +125,8 @@ fn main() {
|
||||
wg.add_tun_reader(reader);
|
||||
}
|
||||
|
||||
// obtain handle for waiting
|
||||
let wait = wg.wait();
|
||||
|
||||
// wrap in configuration interface
|
||||
let cfg = configuration::WireguardConfig::new(wg);
|
||||
let cfg = configuration::WireguardConfig::new(wg.clone());
|
||||
|
||||
// start Tun event thread
|
||||
{
|
||||
@@ -187,6 +184,6 @@ fn main() {
|
||||
});
|
||||
|
||||
// block until all tun readers closed
|
||||
wait.wait();
|
||||
wg.wait();
|
||||
profiler_stop();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user