Skip to content

Commit f807163

Browse files
dunglasburaksezer
authored andcommitted
fix: Windows support
1 parent 78dbc88 commit f807163

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

config/load.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,13 @@ import (
2626
"github.com/buraksezer/olric/hasher"
2727
"github.com/buraksezer/olric/serializer"
2828
"github.com/pkg/errors"
29-
"golang.org/x/sys/unix"
3029
)
3130

3231
// Load reads and loads Olric configuration.
3332
func Load(filename string) (*Config, error) {
3433
if _, err := os.Stat(filename); os.IsNotExist(err) {
3534
return nil, fmt.Errorf("file doesn't exists: %s", filename)
3635
}
37-
if err := unix.Access(filename, unix.R_OK); err != nil {
38-
return nil, fmt.Errorf("file doesn't readable: %s", filename)
39-
}
4036
f, err := os.Open(filename)
4137
if err != nil {
4238
return nil, err

0 commit comments

Comments
 (0)