Skip to content

Commit

Permalink
server: fixed wrong nfqueue worker count (#8)
Browse files Browse the repository at this point in the history
Signed-off-by: Xiaobo Liu <[email protected]>
  • Loading branch information
cppcoffee authored Jan 11, 2024
1 parent 92437dc commit c819c5c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions server/src/bin/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,9 @@ fn main() -> Result<()> {

let conntrack_map = Arc::new(ConntrackMap::new());

for i in 0..config.setting.queue_count {
let queue_id = config.setting.queue_start + i;

let worker = Worker::new(config.clone(), queue_id, conntrack_map.clone())?;
let queue_count = config.setting.queue_start + config.setting.queue_count;
for queue_num in config.setting.queue_start..=queue_count {
let worker = Worker::new(config.clone(), queue_num, conntrack_map.clone())?;
worker.start()?;
}

Expand Down

0 comments on commit c819c5c

Please sign in to comment.