Skip to content
Snippets Groups Projects
Commit f1c93de2 authored by Neil-Jocelyn Schark's avatar Neil-Jocelyn Schark
Browse files

improve quantum module

parent ddce0064
No related branches found
No related tags found
1 merge request!213Allow to reset key store and stop key fetching
This commit is part of merge request !213. Comments created here will be created in the context of that merge request.
......@@ -38,10 +38,14 @@ func (ql *QuantumlayerEmulator) Start() {
logrus.Error("Error generating random numbers: ", err)
continue
}
err = ql.sendDatatoKMS(data, length, iteration)
if err != nil {
logrus.Error("Error sending data to KMS: ", err)
continue
for {
err = ql.sendDatatoKMS(data, length, iteration)
if err != nil {
logrus.Error("Error sending data to KMS, will retry: ", err)
}
time.Sleep(1 * time.Second)
break
}
logrus.Infof("Iteration %d: Sent %d bytes to KMS", iteration, length)
iteration++
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment