Commit 935111d3 authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Put timeout number into generic TimeoutOptions type.

parent 86e38345
......@@ -47,12 +47,24 @@ func (self *inodeData) GetPath() string {
return fullPath
}
type PathFileSystemConnectorOptions struct {
type TimeoutOptions struct {
EntryTimeout float64
AttrTimeout float64
NegativeTimeout float64
}
func MakeTimeoutOptions() TimeoutOptions {
return TimeoutOptions{
NegativeTimeout: 0.0,
AttrTimeout: 1.0,
EntryTimeout: 1.0,
}
}
type PathFileSystemConnectorOptions struct {
TimeoutOptions
}
type PathFileSystemConnector struct {
fileSystem PathFilesystem
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment