aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2016-08-29 23:06:10 +0200
committerMáximo Cuadros <mcuadros@gmail.com>2016-08-29 23:06:10 +0200
commitb73657f1aa7016bdd4c2cbd50bee4c20d5ab69ef (patch)
tree7f93f11b91b84e605a26f573d40791a4f6cb49d0 /examples
parente4246138cb9ffb819c052ba17a9fbdf915427291 (diff)
downloadgo-git-b73657f1aa7016bdd4c2cbd50bee4c20d5ab69ef.tar.gz
core: Storage.Get, switch order of args
Diffstat (limited to 'examples')
-rw-r--r--examples/object_storage/storage.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/object_storage/storage.go b/examples/object_storage/storage.go
index 0513654..eef294c 100644
--- a/examples/object_storage/storage.go
+++ b/examples/object_storage/storage.go
@@ -86,7 +86,7 @@ func (o *AerospikeObjectStorage) Set(obj core.Object) (core.Hash, error) {
return obj.Hash(), err
}
-func (o *AerospikeObjectStorage) Get(h core.Hash, t core.ObjectType) (core.Object, error) {
+func (o *AerospikeObjectStorage) Get(t core.ObjectType, h core.Hash) (core.Object, error) {
key, err := keyFromObject(h, t)
if err != nil {
return nil, err