Update auto-generated files
[ldk-java] / src / main / java / org / ldk / structs / PeerManager.java
index c78e85e79cf0976c3fefeb19783c5b6d4057eeed..4fa6c771f556ead8a30d1c21f67ead812ceb2ba9 100644 (file)
@@ -192,9 +192,12 @@ public class PeerManager extends CommonBase {
        }
 
        /**
-        * This function should be called roughly once every 30 seconds.
-        * It will send pings to each peer and disconnect those which did not respond to the last
-        * round of pings.
+        * Send pings to each peer and disconnect those which did not respond to the last round of
+        * pings.
+        * 
+        * This may be called on any timescale you want, however, roughly once every five to ten
+        * seconds is preferred. The call rate determines both how often we send a ping to our peers
+        * and how much time they have to respond before we disconnect them.
         * 
         * May call [`send_data`] on all [`SocketDescriptor`]s. Thus, be very careful with reentrancy
         * issues!