Browse Source

use postgres in main maybe

pbs
jake 4 years ago
parent
commit
213d679e99
  1. 3
      src/bin/main.rs

3
src/bin/main.rs

@ -8,7 +8,7 @@ use elseware::login::character::CharacterServerState;
use elseware::ship::ship::ShipServerState;
use elseware::ship::ship::ShipServerStateBuilder;
use elseware::entity::account::{NewUserAccountEntity, NewUserSettingsEntity};
use elseware::entity::gateway::{EntityGateway, InMemoryGateway};
use elseware::entity::gateway::{EntityGateway, InMemoryGateway, PostgresGateway};
use elseware::entity::character::NewCharacterEntity;
use elseware::entity::item::{NewItemEntity, ItemDetail, ItemLocation};
@ -48,6 +48,7 @@ fn setup_logger() {
fn main() {
setup_logger();
async_std::task::block_on(async move {
//let mut entity_gateway = PostgresGateway::new("localhost", "elsewhere", "elsewhere", "");
let mut entity_gateway = InMemoryGateway::new();
for i in 0..5 {

Loading…
Cancel
Save