diff --git a/auth/postgresql.go b/auth/postgresql.go index d0c3acd..dee4c8b 100644 --- a/auth/postgresql.go +++ b/auth/postgresql.go @@ -116,7 +116,7 @@ func (a postgres) connect() (*sql.DB, error) { return sql.Open("postgres", string(a)) } -// this could really be optimized a lot. instead of opening a new conenction for +// this could really be optimized a lot. instead of opening a new connection for // each query, it should reuse connections func (a postgres) query(query string, args ...interface{}) (*sql.Rows, error) { client, err := a.connect() diff --git a/core/mist.go b/core/mist.go index c2c18a5..f010933 100644 --- a/core/mist.go +++ b/core/mist.go @@ -69,14 +69,14 @@ func Who() (int, int) { // todo: delete these 2. limiting what is a subscriber makes this not needed // if they subscribe to a thing on a reused connection, they wanted to get updates.. hopefully // -// Publish publishes to ALL subscribers. Usefull in client applications +// Publish publishes to ALL subscribers. Useful in client applications // who reuse the publish connection for subscribing (publishes to self) func Publish(tags []string, data string) error { lumber.Trace("Publishing...") return publish(0, tags, data) } -// PublishAfter publishes to ALL subscribers. Usefull in client applications +// PublishAfter publishes to ALL subscribers. Useful in client applications // who reuse the publish connection for subscribing func PublishAfter(tags []string, data string, delay time.Duration) error { go func() {