|
@@ -462,7 +462,7 @@ func GetAllNodesAPI(nodes []models.Node) []models.ApiNode {
|
|
// DeleteExpiredNodes - goroutine which deletes nodes which are expired
|
|
// DeleteExpiredNodes - goroutine which deletes nodes which are expired
|
|
func DeleteExpiredNodes(ctx context.Context, peerUpdate chan *models.Node) {
|
|
func DeleteExpiredNodes(ctx context.Context, peerUpdate chan *models.Node) {
|
|
// Delete Expired Nodes Every Hour
|
|
// Delete Expired Nodes Every Hour
|
|
- ticker := time.NewTicker(time.Minute * 3)
|
|
|
|
|
|
+ ticker := time.NewTicker(time.Hour)
|
|
for {
|
|
for {
|
|
select {
|
|
select {
|
|
case <-ctx.Done():
|
|
case <-ctx.Done():
|