From 678c7c843a31435e07ad2aac4a948d49fc506089 Mon Sep 17 00:00:00 2001 From: ben hockey Date: Wed, 27 May 2015 16:50:54 -0500 Subject: [PATCH 1/2] move cmp to where it's used --- graph/memstore/iterator.go | 4 ---- graph/memstore/quadstore.go | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/graph/memstore/iterator.go b/graph/memstore/iterator.go index fb82a9f..68f47bb 100644 --- a/graph/memstore/iterator.go +++ b/graph/memstore/iterator.go @@ -34,10 +34,6 @@ type Iterator struct { err error } -func cmp(a, b int64) int { - return int(a - b) -} - func NewIterator(tree *b.Tree, data string, qs *QuadStore) *Iterator { iter, err := tree.SeekFirst() if err != nil { diff --git a/graph/memstore/quadstore.go b/graph/memstore/quadstore.go index 9807c6e..fcf9753 100644 --- a/graph/memstore/quadstore.go +++ b/graph/memstore/quadstore.go @@ -35,6 +35,10 @@ func init() { }, nil, nil) } +func cmp(a, b int64) int { + return int(a - b) +} + type QuadDirectionIndex struct { index [4]map[int64]*b.Tree } From 9c4cc204360e1010ce9028eb8e1aa307c2c44dc1 Mon Sep 17 00:00:00 2001 From: ben hockey Date: Wed, 27 May 2015 17:03:34 -0500 Subject: [PATCH 2/2] bump app engine sdk --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index f969822..21353f5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,8 +14,8 @@ install: # Google App Engine dependencies - cd .. - - wget https://storage.googleapis.com/appengine-sdks/featured/go_appengine_sdk_linux_amd64-1.9.19.zip - - unzip -q go_appengine_sdk_linux_amd64-1.9.19.zip + - wget https://storage.googleapis.com/appengine-sdks/featured/go_appengine_sdk_linux_amd64-1.9.20.zip + - unzip -q go_appengine_sdk_linux_amd64-1.9.20.zip - export PATH=$PATH:$PWD/go_appengine/ - cd cayley