Эх сурвалжийг харах

Removed redudent smbfs renew function as hearbeat will do the trick

Toby Chui 2 жил өмнө
parent
commit
db8d8698ae

+ 0 - 14
mod/filesystem/abstractions/smbfs/smbfs.go

@@ -79,20 +79,6 @@ func NewServerMessageBlockFileSystemAbstraction(uuid string, hierarchy string, i
 		tickerChan: done,
 	}
 
-	//Create a ticker to check for renewing conncetion once an hour
-	ticker := time.NewTicker(5 * time.Minute)
-	go func(s *ServerMessageBlockFileSystemAbstraction) {
-		for {
-			select {
-			case <-done:
-				return
-			case <-ticker.C:
-				//Ping the smb server to make sure it knows we are alive
-				s.share.Stat("")
-			}
-		}
-	}(&fsAbstraction)
-
 	return fsAbstraction, nil
 }