File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change 1
1
use serde:: Serialize ;
2
2
3
- #[ derive( Serialize , PartialEq ) ]
3
+ #[ derive( Serialize , PartialEq , Eq ) ]
4
4
pub enum EpsilonState {
5
5
Starting ,
6
6
Running ,
Original file line number Diff line number Diff line change @@ -50,8 +50,6 @@ impl Task for HubTask {
50
50
let hub_necessary =
51
51
( ( hub_online_count as f32 * 1.6 / self . hub_template . slots as f32 ) + 1.0 ) as u32 ;
52
52
53
- info ! ( "Hubs: {} but necessary -> {}" , hub_number, hub_necessary) ;
54
-
55
53
if hub_number < hub_necessary {
56
54
self . instance_provider . start_instance ( template_name) . await ?;
57
55
}
@@ -66,8 +64,7 @@ impl Task for HubTask {
66
64
if let Ok ( info) = info_result {
67
65
let online_player = info. players . online ;
68
66
69
- if instance. get_state ( ) . eq ( & EpsilonState :: Running ) && online_player < n
70
- {
67
+ if instance. get_state ( ) == EpsilonState :: Running && online_player < n {
71
68
n = online_player;
72
69
hub_option = Some ( instance) ;
73
70
}
You can’t perform that action at this time.
0 commit comments