Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion auth/postgresql.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
4 changes: 2 additions & 2 deletions core/mist.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down