Split up db and trie and added interface

This commit is contained in:
obscuren
2013-12-30 01:09:57 +01:00
parent a926686445
commit f17930eb46
5 changed files with 124 additions and 87 deletions

View File

@ -9,13 +9,13 @@ type Server struct {
// Channel for shutting down the server
shutdownChan chan bool
// DB interface
db *Database
db *LDBDatabase
// Peers (NYI)
peers *list.List
}
func NewServer() (*Server, error) {
db, err := NewDatabase()
db, err := NewLDBDatabase()
if err != nil {
return nil, err
}