openBackhaul / RegistryOffice

Apache License 2.0
2 stars 8 forks source link

triggering /v1/register-yourself creates two instances for same application in RO config file #574

Closed IswaryaaS closed 4 months ago

IswaryaaS commented 4 months ago

On debugging, it is found that /v1/register-yourself triggers two instances of register-application. Due to parallel execution of register-application, two instances gets created at same time.

Solution: In order to avoid this, a lock has been included to the function that creates the application ltps in config file.