Browse Source

s/Make/New/ as is the convention in the golang stdlib

kegan/github
Kegan Dougal 9 years ago
parent
commit
8af5086985
  1. 4
      src/github.com/matrix-org/go-neb/clients/clients.go
  2. 2
      src/github.com/matrix-org/go-neb/goneb.go

4
src/github.com/matrix-org/go-neb/clients/clients.go

@ -17,8 +17,8 @@ type Clients struct {
clients map[string]clientEntry
}
// Make a new collection of matrix clients
func Make(db *database.ServiceDB) *Clients {
// New makes a new collection of matrix clients
func New(db *database.ServiceDB) *Clients {
clients := &Clients{
db: db,
clients: make(map[string]clientEntry),

2
src/github.com/matrix-org/go-neb/goneb.go

@ -22,7 +22,7 @@ func main() {
log.Panic(err)
}
clients := clients.Make(db)
clients := clients.New(db)
if err := clients.Start(); err != nil {
log.Panic(err)
}

Loading…
Cancel
Save