This commit is contained in:
Chris Lu 2019-11-22 14:51:09 -08:00
parent fb3c9ed80d
commit e4c63ff2f8
2 changed files with 4 additions and 4 deletions

View File

@ -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
}

View File

@ -12,7 +12,7 @@ import (
)
var (
s3Sessions = make(map[string]s3iface.S3API)
s3Sessions = make(map[string]s3iface.S3API)
sessionsLock sync.RWMutex
)
@ -45,7 +45,7 @@ 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