We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e4f745b commit c97ca78Copy full SHA for c97ca78
1 file changed
papeador.go
@@ -50,22 +50,3 @@ func main() {
50
51
testDB(port)
52
}
53
-
54
-func main() {
55
- uriPtr := flag.String("u", "unix:///run/user/1000/podman/podman.sock", "uri for Podman API service connection")
56
- var port int
57
- flag.IntVar(&port, "p", 8080, "port to listen from")
58
- flag.Parse()
59
60
- uri := *uriPtr
61
- _, err := judge.ConnectToPodman(uri)
62
- if err != nil {
63
- log.Fatalf("Could not connect to Podman: %v", err)
64
- }
65
66
- mux := http.NewServeMux()
67
68
- mux.HandleFunc("POST /program", api.SubmitProgram)
69
- log.Printf("Starting server at :%v\n", port)
70
- http.ListenAndServe(fmt.Sprintf(":%v", port), mux)
71
-}
0 commit comments