forked from snxraven/p2ns
feat: add HyperDB replication to file.drop plugin
- Add database watcher to monitor @filedrop/files collection changes - Implement robust database initialization with retry logic (30 attempts) - Add replication status checking and logging on startup - Add peer connection handlers for active replication updates - Enable real-time database synchronization across P2NS network
This commit is contained in:
@@ -470,7 +470,7 @@ function createPluginChannelsForPeer(peerId, conn, mux) {
|
||||
return;
|
||||
}
|
||||
setRecreating(pluginDomain, protocol, peerId);
|
||||
peerChannel.lastReopenAttempt = now;
|
||||
peerChannel.lastReopenAttempt = Date.now();
|
||||
logDebug('ChannelManager', `Channel ${fullProtocol} fully closed, recreating for peer ${peerId.substring(0, 16)}...`);
|
||||
// Remove old channel reference
|
||||
channelInfo.peerChannels.delete(peerId);
|
||||
|
||||
Reference in New Issue
Block a user