avoid EOF error on windows. This is a "try to load" function anyway.

This commit is contained in:
Chris Lu 2013-02-11 23:38:48 -08:00
parent b395a5289b
commit 91492b4947

View file

@ -60,7 +60,7 @@ func LoadNeedleMap(file *os.File) (*NeedleMap, error) {
count, e = nm.indexFile.Read(bytes)
}
return nm, e
return nm, nil
}
func (nm *NeedleMap) Put(key uint64, offset uint32, size uint32) (int, error) {