Merge branch 'main' into a2a-swarm-example
This commit is contained in:
@@ -123,6 +123,7 @@ pub fn main() !void {
|
||||
const port = base_port + @as(u16, @intCast(i));
|
||||
var config = P2PConfig.default();
|
||||
config.network.listen_port = port;
|
||||
config.network.enable_noise_encryption = false;
|
||||
config.protocol.enable_encryption = false;
|
||||
config.events.enable_logging = false;
|
||||
config.file_sharing.piece_size = PIECE_SIZE;
|
||||
|
||||
@@ -85,6 +85,7 @@ fn initPeerThread(ctx: *PeerInitContext) void {
|
||||
|
||||
var config = p2p_lib.P2PConfig.default();
|
||||
config.network.listen_port = peer_port;
|
||||
config.network.enable_noise_encryption = false;
|
||||
config.events.enable_logging = false;
|
||||
config.file_sharing.max_concurrent_uploads = 64;
|
||||
config.file_sharing.piece_size = PIECE_SIZE;
|
||||
@@ -346,6 +347,7 @@ pub fn main() !void {
|
||||
|
||||
var client_config = p2p_lib.P2PConfig.default();
|
||||
client_config.network.listen_port = client_port;
|
||||
client_config.network.enable_noise_encryption = false;
|
||||
client_config.events.enable_logging = false;
|
||||
client_config.file_sharing.max_concurrent_downloads = 512;
|
||||
client_config.file_sharing.piece_size = PIECE_SIZE;
|
||||
|
||||
@@ -220,6 +220,7 @@ const PeerManager = struct {
|
||||
fn createPeer(self: *PeerManager, name: []const u8, role: PeerRole, port: u16) !*PeerState {
|
||||
var config = P2PConfig.default();
|
||||
config.network.listen_port = port;
|
||||
config.network.enable_noise_encryption = false;
|
||||
config.protocol.enable_encryption = false;
|
||||
config.events.enable_logging = false;
|
||||
// CASCADE FIX: Disable rate limiting for test to allow mesh topology establishment
|
||||
@@ -652,6 +653,7 @@ const SwarmChaosTest = struct {
|
||||
// Reinitialize A
|
||||
var config = P2PConfig.default();
|
||||
config.network.listen_port = recovery_port;
|
||||
config.network.enable_noise_encryption = false;
|
||||
config.protocol.enable_encryption = false;
|
||||
config.events.enable_logging = false;
|
||||
config.file_sharing.piece_size = Config.PIECE_SIZE;
|
||||
|
||||
Reference in New Issue
Block a user