Explorar el Código

NET-1779: fix string format

abhishek9686 hace 8 meses
padre
commit
defb39cd9c
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      pro/controllers/failover.go

+ 2 - 2
pro/controllers/failover.go

@@ -415,8 +415,8 @@ func registerFailoverAck(w http.ResponseWriter, r *http.Request) {
 		)
 	}
 	// check if both ack-exists
-	ack1exists := proLogic.DoesFailoverAckExists(fmt.Sprintln("%s_%s", nodeid, peerid))
-	ack2exists := proLogic.DoesFailoverAckExists(fmt.Sprintln("%s_%s", peerid, nodeid))
+	ack1exists := proLogic.DoesFailoverAckExists(fmt.Sprintf("%s_%s", nodeid, peerid))
+	ack2exists := proLogic.DoesFailoverAckExists(fmt.Sprintf("%s_%s", peerid, nodeid))
 	if !ack1exists || !ack2exists {
 		return
 	}