From 2edfb1e696d8f46ea4276b3952078b1553ea42eb Mon Sep 17 00:00:00 2001 From: LK4D4 Date: Sat, 28 Jun 2014 12:20:31 +0400 Subject: [PATCH] Update go-patricia to v1.0.1 Docker-DCO-1.1-Signed-off-by: Alexandr Morozov (github: LK4D4) --- hack/vendor.sh | 2 +- vendor/src/github.com/tchap/go-patricia/.travis.yml | 9 --------- vendor/src/github.com/tchap/go-patricia/README.md | 12 ++++++++++-- .../tchap/go-patricia/patricia/children.go | 11 +++++------ 4 files changed, 16 insertions(+), 18 deletions(-) delete mode 100644 vendor/src/github.com/tchap/go-patricia/.travis.yml diff --git a/hack/vendor.sh b/hack/vendor.sh index b17ea0b3ab..e444a01c40 100755 --- a/hack/vendor.sh +++ b/hack/vendor.sh @@ -47,7 +47,7 @@ clone git github.com/gorilla/mux 136d54f81f clone git github.com/syndtr/gocapability 3c85049eae -clone git github.com/tchap/go-patricia v1.0.0 +clone git github.com/tchap/go-patricia v1.0.1 clone hg code.google.com/p/go.net 84a4013f96e0 diff --git a/vendor/src/github.com/tchap/go-patricia/.travis.yml b/vendor/src/github.com/tchap/go-patricia/.travis.yml deleted file mode 100644 index 66183e2ad4..0000000000 --- a/vendor/src/github.com/tchap/go-patricia/.travis.yml +++ /dev/null @@ -1,9 +0,0 @@ -language: go - -go: - - 1.2 - - tip - -branches: - exclude: - - wip diff --git a/vendor/src/github.com/tchap/go-patricia/README.md b/vendor/src/github.com/tchap/go-patricia/README.md index 635e2b8ea7..11ee4612d3 100644 --- a/vendor/src/github.com/tchap/go-patricia/README.md +++ b/vendor/src/github.com/tchap/go-patricia/README.md @@ -1,8 +1,10 @@ # go-patricia # **Documentation**: [GoDoc](http://godoc.org/github.com/tchap/go-patricia/patricia)
-**Build Status**: [![Build Status](https://travis-ci.org/tchap/go-patricia.png?branch=master)](https://travis-ci.org/tchap/go-patricia)
-**Test Coverage**: Comming as soon as Drone.io people update their Go. +**Build Status**: [![Build +Status](https://drone.io/github.com/tchap/go-patricia/status.png)](https://drone.io/github.com/tchap/go-patricia/latest)
+**Test Coverage**: [![Coverage +Status](https://coveralls.io/repos/tchap/go-patricia/badge.png)](https://coveralls.io/r/tchap/go-patricia) ## About ## @@ -34,6 +36,12 @@ Import the package from GitHub first. import "github.com/tchap/go-patricia/patricia" ``` +You can as well use gopkg.in thingie: + +```go +import "gopkg.in/tchap/go-patricia.v1/patricia" +``` + Then you can start having fun. ```go diff --git a/vendor/src/github.com/tchap/go-patricia/patricia/children.go b/vendor/src/github.com/tchap/go-patricia/patricia/children.go index 42b0547de6..07d3326335 100644 --- a/vendor/src/github.com/tchap/go-patricia/patricia/children.go +++ b/vendor/src/github.com/tchap/go-patricia/patricia/children.go @@ -5,12 +5,11 @@ package patricia -const ( - // Max prefix length that is kept in a single trie node. - MaxPrefixPerNode = 10 - // Max children to keep in a node in the sparse mode. - MaxChildrenPerSparseNode = 8 -) +// Max prefix length that is kept in a single trie node. +var MaxPrefixPerNode = 10 + +// Max children to keep in a node in the sparse mode. +const MaxChildrenPerSparseNode = 8 type childList interface { length() int