Browse Source

go fmt

pull/1818/head
Chris Lu 4 years ago
parent
commit
3575d41009
  1. 6
      weed/filer/postgres/postgres_sql_gen.go
  2. 2
      weed/topology/disk.go

6
weed/filer/postgres/postgres_sql_gen.go

@ -1,10 +1,10 @@
package postgres package postgres
import ( import (
`fmt`
"fmt"
`github.com/chrislusf/seaweedfs/weed/filer/abstract_sql`
_ `github.com/lib/pq`
"github.com/chrislusf/seaweedfs/weed/filer/abstract_sql"
_ "github.com/lib/pq"
) )
type SqlGenPostgres struct { type SqlGenPostgres struct {

2
weed/topology/disk.go

@ -68,7 +68,7 @@ func (d *DiskUsages) ToMap() interface{} {
return ret return ret
} }
func (d *DiskUsages) ToDiskInfo() (map[string]*master_pb.DiskInfo) {
func (d *DiskUsages) ToDiskInfo() map[string]*master_pb.DiskInfo {
ret := make(map[string]*master_pb.DiskInfo) ret := make(map[string]*master_pb.DiskInfo)
for diskType, diskUsageCounts := range d.usages { for diskType, diskUsageCounts := range d.usages {
m := &master_pb.DiskInfo{ m := &master_pb.DiskInfo{

Loading…
Cancel
Save