Skip to content

Commit

Permalink
Defer gossip service shutdown
Browse files Browse the repository at this point in the history
Sequence it before deinit
  • Loading branch information
InKryption committed Oct 31, 2024
1 parent e7cb7c7 commit f4aec7b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/gossip/service.zig
Original file line number Diff line number Diff line change
Expand Up @@ -2585,6 +2585,7 @@ test "handle pull request" {
logger,
);
defer gossip_service.deinit();
defer gossip_service.shutdown();

// insert random values
const N_FILTER_BITS = 1;
Expand Down Expand Up @@ -2672,8 +2673,6 @@ test "handle pull request" {
try std.testing.expect(values.len > 0);
}
}

gossip_service.shutdown();
}

test "test build prune messages and handle push messages" {
Expand Down

0 comments on commit f4aec7b

Please sign in to comment.