mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-26 07:52:13 +00:00
Import the Settings struct instead of prefixing the namespace
This commit is contained in:
parent
279a901e4a
commit
0ceed8fd9b
|
@ -10,6 +10,7 @@ use lemmy_server::db::establish_connection;
|
||||||
use lemmy_server::feeds;
|
use lemmy_server::feeds;
|
||||||
use lemmy_server::nodeinfo;
|
use lemmy_server::nodeinfo;
|
||||||
use lemmy_server::websocket::server::*;
|
use lemmy_server::websocket::server::*;
|
||||||
|
use lemmy_server::Settings;
|
||||||
use std::env;
|
use std::env;
|
||||||
use std::time::{Duration, Instant};
|
use std::time::{Duration, Instant};
|
||||||
|
|
||||||
|
@ -191,7 +192,7 @@ fn main() {
|
||||||
// Start chat server actor in separate thread
|
// Start chat server actor in separate thread
|
||||||
let server = ChatServer::default().start();
|
let server = ChatServer::default().start();
|
||||||
|
|
||||||
let settings = lemmy_server::Settings::get();
|
let settings = Settings::get();
|
||||||
|
|
||||||
// Create Http server with websocket support
|
// Create Http server with websocket support
|
||||||
HttpServer::new(move || {
|
HttpServer::new(move || {
|
||||||
|
|
Loading…
Reference in a new issue