Skip to content

Commit

Permalink
Remove unnecessary GOMAXPROCS setting
Browse files Browse the repository at this point in the history
In Go 1.5 this defaults to the number of cores available instead of 1.
  • Loading branch information
bittersweet committed Oct 11, 2015
1 parent e4ca479 commit 5fe9546
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions notifilter.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"log"
"net"
"net/http"
"runtime"
"time"

"github.com/bittersweet/notifilter/elasticsearch"
Expand Down Expand Up @@ -160,8 +159,6 @@ func listenToUDP(conn *net.UDPConn) {
// main handles setting up connections for UDP/TCP and connecting to Postgres
// Note, sqlx uses a connection pool internally.
func main() {
runtime.GOMAXPROCS(4)

err := envconfig.Process("notifilter", &C)
if err != nil {
log.Fatal("Could not load config: ", err.Error())
Expand Down

0 comments on commit 5fe9546

Please sign in to comment.