withGracePeriod function
WithGracePeriod sets the grace period. If a peer doesn't reconnect during the grace period, its data is removed. Default: 1 minute.
Implementation
Option withGracePeriod(Duration period) {
return (PeerstoreManager m) {
m._gracePeriod = period;
return;
};
}