mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-11-25 03:29:10 +08:00
go fmt
This commit is contained in:
parent
fb3c9ed80d
commit
e4c63ff2f8
@ -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)
|
||||
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user