CMC

Results 2 issues of CMC

https://github.com/lifei6671/interview-go/blob/63a7d02b52c3dc7c3d9fa1e8cb2b3559f8b1caad/src/q010.go#L57 https://github.com/lifei6671/interview-go/blob/63a7d02b52c3dc7c3d9fa1e8cb2b3559f8b1caad/src/q010.go#L58 这两行代码中的解锁和加锁操作并不是原子的,在 57 行解锁后,锁可能会被其他协程拿到。如果锁被一个写操作的协程拿到,就会出现刚写入的键值对又被覆盖成空的情况。

According to the following code in repo [label-studio](https://github.com/HumanSignal/label-studio/blob/develop/label_studio/data_import/models.py#L51) ```python @property def url(self): if settings.FORCE_SCRIPT_NAME and not (settings.HOSTNAME and settings.CLOUD_FILE_STORAGE_ENABLED): return settings.FORCE_SCRIPT_NAME + '/' + self.file.url.lstrip('/') else: return self.file.url ``` The...

fix