From 8af5086985b52c6d7577a0ba756ca8764e4ddabf Mon Sep 17 00:00:00 2001 From: Kegan Dougal Date: Fri, 29 Jul 2016 14:38:56 +0100 Subject: [PATCH] s/Make/New/ as is the convention in the golang stdlib --- src/github.com/matrix-org/go-neb/clients/clients.go | 4 ++-- src/github.com/matrix-org/go-neb/goneb.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/github.com/matrix-org/go-neb/clients/clients.go b/src/github.com/matrix-org/go-neb/clients/clients.go index a3159b4..29345d3 100644 --- a/src/github.com/matrix-org/go-neb/clients/clients.go +++ b/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), diff --git a/src/github.com/matrix-org/go-neb/goneb.go b/src/github.com/matrix-org/go-neb/goneb.go index 9143f45..0d7c611 100644 --- a/src/github.com/matrix-org/go-neb/goneb.go +++ b/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) }