Explorar el Código

initalise to new var

abhishek9686 hace 1 año
padre
commit
a6359330eb
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      logic/nodes.go

+ 1 - 0
logic/nodes.go

@@ -475,6 +475,7 @@ func DeleteExpiredNodes(ctx context.Context, peerUpdate chan *models.Node) {
 				return
 			}
 			for _, node := range allnodes {
+				node := node
 				if time.Now().After(node.ExpirationDateTime) {
 					peerUpdate <- &node
 					slog.Info("deleting expired node", "nodeid", node.ID.String())