def _backup(self, interval):
        """
        Sync persistent bloom filter to disk

        :param int interval: Interval between syncing bloom filter to disk

        """

        if interval > 0:
            # Continuously sync bloom filter at interval
            while True:
                time.sleep(interval)
                self.current_filter.fdatasync()
        else:
            # If no positive interval set, sync once
            self.current_filter.fdatasync()
dataset/ETHPy150Open PUNCH-Cyber/stoq/stoq-framework/filters.py/StoqBloomFilter._backup/original