mirror of https://github.com/milvus-io/milvus.git
Fix data race for config with FileSource (#26518)
Signed-off-by: yah01 <yah2er0ne@outlook.com>pull/26604/head
parent
c2b53bb9fe
commit
c3f5856fbc
|
@ -91,6 +91,8 @@ func (fs *FileSource) Close() {
|
|||
}
|
||||
|
||||
func (fs *FileSource) SetEventHandler(eh EventHandler) {
|
||||
fs.RWMutex.Lock()
|
||||
defer fs.RWMutex.Unlock()
|
||||
fs.configRefresher.eh = eh
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue