fix: bad mapKey typing
This commit is contained in:
parent
0679a7cc3b
commit
775d3f7e6f
|
@ -494,7 +494,8 @@ func (t *TusHandler) worker() {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
mapKey := append(decodedHash.HashBytes(), []byte(info.Upload.ID)...)
|
mapKey := append([]byte{}, decodedHash.HashBytes()...)
|
||||||
|
mapKey = append(mapKey, []byte(info.Upload.ID)...)
|
||||||
if _, ok := t.uploadMutexMap.Load(mapKey); !ok {
|
if _, ok := t.uploadMutexMap.Load(mapKey); !ok {
|
||||||
t.uploadMutexMap.Store(mapKey, &sync.Mutex{})
|
t.uploadMutexMap.Store(mapKey, &sync.Mutex{})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue