mirror of
https://github.com/xuthus83/pigallery2.git
synced 2025-01-14 14:43:17 +08:00
6fb57a7b0a
removing threads dependency
11 lines
191 B
TypeScript
11 lines
191 B
TypeScript
import * as cluster from "cluster";
|
|
import {Worker} from "./model/threading/Worker";
|
|
import {Server} from "./server";
|
|
|
|
|
|
if (cluster.isMaster) {
|
|
new Server();
|
|
} else {
|
|
Worker.process();
|
|
}
|