just exit in case of duplicated volume directories were loaded

This commit is contained in:
guol-fnst
2022-05-17 11:06:41 +08:00
committed by guol-fnst
parent 8fab39e775
commit 076595fbdd
3 changed files with 2 additions and 8 deletions

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() {