Move discovery error interval into struct