Stop using magic init function
This commit is contained in:
@@ -6449,7 +6449,7 @@ func runInit(ctx context.Context) {
|
|||||||
log.Printf("Finished INIT")
|
log.Printf("Finished INIT")
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() {
|
func initHandlers() {
|
||||||
var err error
|
var err error
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
|
|
||||||
@@ -6575,7 +6575,7 @@ func init() {
|
|||||||
|
|
||||||
// Had to move away from mux, which means Method is fucked up right now.
|
// Had to move away from mux, which means Method is fucked up right now.
|
||||||
func main() {
|
func main() {
|
||||||
//init()
|
initHandlers()
|
||||||
hostname, err := os.Hostname()
|
hostname, err := os.Hostname()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
hostname = "MISSING"
|
hostname = "MISSING"
|
||||||
|
|||||||
Reference in New Issue
Block a user