Last active
June 14, 2018 12:23
-
-
Save rippinrobr/d35ed9a24d74189931b1b58b43826e5f to your computer and use it in GitHub Desktop.
Starting the actix system
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let sys = actix::System::new("conspiracies-api"); | |
// Start 3 parallel db executors | |
let addr = SyncArbiter::start(3, || { | |
DbExecutor(SqliteConnection::establish("database/conspiracies.sqlite3").unwrap()) | |
}); | |
..... Route definitions here ..... | |
let _ = sys.run(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment