@ -50,7 +50,7 @@ func (mmf *MemoryMappedFile) Close() error {
func (mmf *MemoryMappedFile) GetStat() (datSize int64, modTime time.Time, err error) {
stat, e := mmf.mm.File.Stat()
if e == nil {
return mmf.mm.End_of_file+1, stat.ModTime(), nil
return mmf.mm.End_of_file + 1, stat.ModTime(), nil
}
return 0, time.Time{}, err
@ -12,7 +12,7 @@ import (
)
var (
s3Sessions = make(map[string]s3iface.S3API)
sessionsLock sync.RWMutex
@ -45,10 +45,10 @@ func createSession(awsAccessKeyId, awsSecretAccessKey, region string) (s3iface.S
return nil, fmt.Errorf("create aws session in region %s: %v", region, err)
t:= s3.New(sess)
t := s3.New(sess)
s3Sessions[region] = t
return t, nil