Reflect PR feedback

- Remove leftover `int` in `GossipsubParams`
- Remove default fields in tests
This commit is contained in:
mhchia
2019-08-01 21:38:14 +08:00
parent 33d233f5df
commit 716c60ca6d
2 changed files with 3 additions and 32 deletions

View File

@ -41,7 +41,7 @@ class GossipsubFactory(factory.Factory):
degree_high = GOSSIPSUB_PARAMS.degree_high
time_to_live = GOSSIPSUB_PARAMS.time_to_live
gossip_window = GOSSIPSUB_PARAMS.gossip_window
gossip_history = int(GOSSIPSUB_PARAMS.gossip_history)
gossip_history = GOSSIPSUB_PARAMS.gossip_history
heartbeat_interval = GOSSIPSUB_PARAMS.heartbeat_interval