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 a1afafa commit 98dd16e
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 98dd16e

Please sign in to comment.