just exit in case of duplicated volume directories were loaded

This commit is contained in:
guol-fnst authored and guol-fnst committed 2022-05-17 15:41:49 +08:00
1 parent 8fab39e775
commit 076595fbdd
3 files changed
+2 -8

No files matched your search

+1 -1
View File
@@ -267,7 +267,7 @@ func (v VolumeServerOptions) startVolumeServer(volumeFolders, maxVolumeCounts, v
stopChan := make(chan bool)
grace.OnInterrupt(func() {
fmt.Println("volume server has be killed")
fmt.Println("volume server has been killed")
// Stop heartbeats
if !volumeServer.StopHeartbeat() {