Skip to content

Commit

Permalink
Default to in-memory storage for the proxy (gomods#475)
Browse files Browse the repository at this point in the history
* Default to in-memory storage for the proxy

This makes it easier for someone to try out or just run the proxy by
executing the binary without further environment setup.

* Remove obsolete comment
  • Loading branch information
carolynvs authored and marwan-at-work committed Aug 14, 2018
1 parent 327feca commit afd0181
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions cmd/proxy/.env
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
ATHENS_MONGO_STORAGE_URL=mongodb://127.0.0.1:27017
ATHENS_STORAGE_TYPE=mongo
GO_ENV=test_postgres
POP_PATH=$PWD/cmd/proxy
3 changes: 1 addition & 2 deletions cmd/proxy/actions/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ import (

// GetStorage returns storage backend based on env configuration
func GetStorage() (storage.BackendConnector, error) {
// changing to mongo storage, memory seems buggy
storageType := env.StorageTypeWithDefault("mongo")
storageType := env.StorageTypeWithDefault("memory")
var storageRoot string
var err error

Expand Down

0 comments on commit afd0181

Please sign in to comment.