From 2eeae0a65a137ab1796ff93133201cfcf3cab750 Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Sat, 13 Apr 2024 12:26:08 +0200 Subject: Allow opentracker to start with a random set of torrents for debugging purposes --- trackerlogic.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'trackerlogic.h') diff --git a/trackerlogic.h b/trackerlogic.h index bc488c9..7e6e8ad 100644 --- a/trackerlogic.h +++ b/trackerlogic.h @@ -190,7 +190,9 @@ size_t remove_peer_from_torrent( PROTO_FLAG proto, struct ot_workstruct *ws ); size_t return_tcp_scrape_for_torrent( ot_hash const *hash_list, int amount, char *reply ); size_t return_udp_scrape_for_torrent( ot_hash const hash, char *reply ); void add_torrent_from_saved_state( ot_hash const hash, ot_time base, size_t down_count ); +#ifdef _DEBUG_RANDOMTORRENTS void trackerlogic_add_random_torrents(size_t amount); +#endif /* torrent iterator */ void iterate_all_torrents( int (*for_each)( ot_torrent* torrent, uintptr_t data ), uintptr_t data ); -- cgit v1.2.3