Skip to content

Commit

Permalink
integrated github.com/vharitonsky/iniflags into all apps
Browse files Browse the repository at this point in the history
  • Loading branch information
valyala committed Aug 15, 2014
1 parent 85c37a8 commit 7e9a6b6
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ go-memcached-bench:
$(GOCC) build -o go-memcached-bench -a -tags release ./apps/go/memcached-bench

go-update:
$(GOCC) get -u -a github.com/vharitonsky/iniflags
$(GOCC) get -u -a github.com/valyala/ybc/bindings/go/ybc
$(GOCC) get -u -a github.com/valyala/ybc/libs/go/memcache
$(GOCC) get -u -a github.com/valyala/ybc/apps/go/cdn-booster
Expand Down
3 changes: 2 additions & 1 deletion apps/go/cdn-booster-bench/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
"crypto/tls"
"flag"
"fmt"
"github.com/vharitonsky/iniflags"
"io"
"io/ioutil"
"log"
Expand Down Expand Up @@ -52,7 +53,7 @@ var (
)

func main() {
flag.Parse()
iniflags.Parse()
flag.VisitAll(func(f *flag.Flag) {
fmt.Printf("%s=%v\n", f.Name, f.Value)
})
Expand Down
3 changes: 2 additions & 1 deletion apps/go/cdn-booster/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import (
"flag"
"fmt"
"github.com/valyala/ybc/bindings/go/ybc"
"github.com/vharitonsky/iniflags"
"io"
"io/ioutil"
"log"
Expand Down Expand Up @@ -78,7 +79,7 @@ var (
)

func main() {
flag.Parse()
iniflags.Parse()

runtime.GOMAXPROCS(*goMaxProcs)

Expand Down
3 changes: 2 additions & 1 deletion apps/go/memcached-bench/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"fmt"
memcache_org "github.com/bradfitz/gomemcache/memcache"
memcache_new "github.com/valyala/ybc/libs/go/memcache"
"github.com/vharitonsky/iniflags"
"log"
"math/rand"
"runtime"
Expand Down Expand Up @@ -449,7 +450,7 @@ func getWorkerNew(serverAddrs_ []string) func(wg *sync.WaitGroup, ch chan int, s
}

func main() {
flag.Parse()
iniflags.Parse()
fmt.Printf("Config:\n")
flag.VisitAll(func(f *flag.Flag) {
fmt.Printf("%s=%v\n", f.Name, f.Value)
Expand Down
3 changes: 2 additions & 1 deletion apps/go/memcached/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import (
"flag"
"github.com/valyala/ybc/bindings/go/ybc"
"github.com/valyala/ybc/libs/go/memcache"
"github.com/vharitonsky/iniflags"
"log"
"runtime"
"strings"
Expand Down Expand Up @@ -50,7 +51,7 @@ var (
)

func main() {
flag.Parse()
iniflags.Parse()

runtime.GOMAXPROCS(*goMaxProcs)

Expand Down

0 comments on commit 7e9a6b6

Please sign in to comment.