Move Queue to attic

This commit is contained in:
Jae Kwon 2017-12-01 14:08:37 -08:00
parent 6a3a37d5a6
commit 8c250cc840
8 changed files with 23 additions and 5 deletions

View File

@ -48,6 +48,9 @@ test_tutorial:
bash $$script ; \ bash $$script ; \
done done
test_store:
@go test store/*.go
get_vendor_deps: tools get_vendor_deps: tools
@glide install @glide install
@ -70,4 +73,4 @@ clean:
fresh: clean get_vendor_deps install fresh: clean get_vendor_deps install
@if [ "$(git status -s)" ]; then echo; echo "Warning: uncommited changes"; git status -s; fi @if [ "$(git status -s)" ]; then echo; echo "Warning: uncommited changes"; git status -s; fi
.PHONY: all build install test test_cli test_unit get_vendor_deps build-docker clean fresh benchmark .PHONY: all build install test test_cli test_unit test_store get_vendor_deps build-docker clean fresh benchmark

10
exports.go Normal file
View File

@ -0,0 +1,10 @@
package sdk
import (
types "github.com/cosmos/cosmos-sdk/types"
)
// XXX type aliases for the types/* directory
type (
Handler = types.Handler
)

View File

@ -9,7 +9,12 @@ type IAVLStore struct {
// //
} }
// XXX GUT THIS AND TURN IT INTO AN IAVLSTORE LOADER // XXX
func NewIAVLStore() {
}
/*
// XXX GUT THIS AND TURN IT INTO AN IAVLSTORE LOADER, LoadIAVLStore()
func loadState(dbName string, cacheSize int) (*sm.State, error) { func loadState(dbName string, cacheSize int) (*sm.State, error) {
// memory backed case, just for testing // memory backed case, just for testing
if dbName == "" { if dbName == "" {
@ -39,3 +44,4 @@ func loadState(dbName string, cacheSize int) (*sm.State, error) {
return sm.NewState(tree), nil return sm.NewState(tree), nil
} }
*/

View File

@ -2,7 +2,6 @@ package store
import ( import (
"fmt" "fmt"
"sort"
"github.com/tendermint/go-wire" "github.com/tendermint/go-wire"
dbm "github.com/tendermint/tmlibs/db" dbm "github.com/tendermint/tmlibs/db"

View File

@ -1,4 +1,4 @@
package sdk package types
// A Decorator executes before/during/after a handler to enhance functionality. // A Decorator executes before/during/after a handler to enhance functionality.
type Decorator interface { type Decorator interface {

View File

@ -1,4 +1,4 @@
package sdk package types
import ( import (
abci "github.com/tendermint/abci/types" abci "github.com/tendermint/abci/types"