File tree Expand file tree Collapse file tree 1 file changed +0
-38
lines changed Expand file tree Collapse file tree 1 file changed +0
-38
lines changed Original file line number Diff line number Diff line change @@ -269,44 +269,6 @@ mongoc_topology_destroy (mongoc_topology_t *topology)
269
269
bson_free (topology );
270
270
}
271
271
272
- /*
273
- *--------------------------------------------------------------------------
274
- *
275
- * _mongoc_topology_time_to_scan --
276
- *
277
- * Returns true if it is time to scan the cluster again.
278
- *
279
- *--------------------------------------------------------------------------
280
- */
281
- static bool
282
- _mongoc_topology_time_to_scan (mongoc_topology_t * topology ) {
283
- return bson_get_monotonic_time () - topology -> last_scan >=
284
- topology -> heartbeat_msec * 1000 ;
285
- }
286
-
287
- /*
288
- *--------------------------------------------------------------------------
289
- *
290
- * _mongoc_topology_min_heartbeat_from_now --
291
- *
292
- * How long until we're allowed to rescan, in microseconds.
293
- *
294
- * Server Discovery And Monitoring Spec: "If a client frequently
295
- * rechecks a server, it MUST wait at least minHeartbeatFrequencyMS
296
- * milliseconds since the previous check to avoid pointless effort.
297
- * This value MUST be 500 ms, and it MUST NOT be configurable."
298
- *
299
- *--------------------------------------------------------------------------
300
- */
301
- static int64_t
302
- _mongoc_topology_min_heartbeat_from_now (mongoc_topology_t * topology ,
303
- int64_t now )
304
- {
305
- int64_t next_scan = topology -> last_scan
306
- + MONGOC_TOPOLOGY_MIN_HEARTBEAT_FREQUENCY_MS * 1000 ;
307
- return next_scan - now ;
308
- }
309
-
310
272
/*
311
273
*--------------------------------------------------------------------------
312
274
*
You can’t perform that action at this time.
0 commit comments