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
...@@ -38,10 +38,14 @@ func (ql *QuantumlayerEmulator) Start() { ...@@ -38,10 +38,14 @@ func (ql *QuantumlayerEmulator) Start() {
logrus.Error("Error generating random numbers: ", err) logrus.Error("Error generating random numbers: ", err)
continue continue
} }
err = ql.sendDatatoKMS(data, length, iteration)
if err != nil { for {
logrus.Error("Error sending data to KMS: ", err) err = ql.sendDatatoKMS(data, length, iteration)
continue 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) logrus.Infof("Iteration %d: Sent %d bytes to KMS", iteration, length)
iteration++ iteration++
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment