diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2016-08-29 23:06:10 +0200 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2016-08-29 23:06:10 +0200 |
commit | b73657f1aa7016bdd4c2cbd50bee4c20d5ab69ef (patch) | |
tree | 7f93f11b91b84e605a26f573d40791a4f6cb49d0 /examples/object_storage | |
parent | e4246138cb9ffb819c052ba17a9fbdf915427291 (diff) | |
download | go-git-b73657f1aa7016bdd4c2cbd50bee4c20d5ab69ef.tar.gz |
core: Storage.Get, switch order of args
Diffstat (limited to 'examples/object_storage')
-rw-r--r-- | examples/object_storage/storage.go | 2 |
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 |