From 6128c56a0c5424d0865305ccf835d509b59063c7 Mon Sep 17 00:00:00 2001 From: ErickSkrauch Date: Wed, 23 Aug 2017 00:01:58 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=20=D0=B2=D1=8B=D0=B7=D0=BE=D0=B2=20runtime.GOMAXPROCS()?= =?UTF-8?q?=20=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5=D0=BD=D1=8B=20?= =?UTF-8?q?=D0=B7=D0=B0=D0=B2=D0=B8=D1=81=D0=B8=D0=BC=D0=BE=D1=81=D1=82?= =?UTF-8?q?=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Gopkg.lock | 8 ++++---- db/redis.go | 2 +- main.go | 7 ++++++- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/Gopkg.lock b/Gopkg.lock index 9a3c33c..cdc9b31 100644 --- a/Gopkg.lock +++ b/Gopkg.lock @@ -107,7 +107,7 @@ branch = "master" name = "github.com/spf13/cobra" packages = ["."] - revision = "cb731b898346822cc0c225c28550a8a29d93c732" + revision = "4a7b7e65864c064d48dce82efbbfed2bdc0bf2aa" [[projects]] branch = "master" @@ -122,10 +122,10 @@ version = "v1.0.0" [[projects]] - branch = "master" name = "github.com/spf13/viper" packages = ["."] revision = "25b30aa063fc18e48662b86996252eabdcf2f0c7" + version = "v1.0.0" [[projects]] branch = "master" @@ -143,7 +143,7 @@ branch = "master" name = "golang.org/x/sys" packages = ["unix"] - revision = "9f7170bcd8e9f4d3691c06401119c46a769a1e03" + revision = "07c182904dbd53199946ba614a412c61d3c548f5" [[projects]] branch = "master" @@ -166,6 +166,6 @@ [solve-meta] analyzer-name = "dep" analyzer-version = 1 - inputs-digest = "a224232f222d77ae5bbdce4248f82a031590b863a6f34f2dd7350ffd330278e6" + inputs-digest = "75c18193e3b7f0ae90987dc2e69a73c08c4329ab0ea3839112c05d45564d09c3" solver-name = "gps-cdcl" solver-version = 1 diff --git a/db/redis.go b/db/redis.go index da09a87..2814fd2 100644 --- a/db/redis.go +++ b/db/redis.go @@ -14,8 +14,8 @@ import ( "github.com/mediocregopher/radix.v2/redis" "github.com/mediocregopher/radix.v2/util" - "elyby/minecraft-skinsystem/model" "elyby/minecraft-skinsystem/interfaces" + "elyby/minecraft-skinsystem/model" ) type RedisFactory struct { diff --git a/main.go b/main.go index ecfb475..5640a87 100644 --- a/main.go +++ b/main.go @@ -1,7 +1,12 @@ package main -import "elyby/minecraft-skinsystem/cmd" +import ( + "runtime" + + "elyby/minecraft-skinsystem/cmd" +) func main() { + runtime.GOMAXPROCS(runtime.NumCPU()) cmd.Execute() }