Commit 3a76054d authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 96580b58
...@@ -20,7 +20,10 @@ ...@@ -20,7 +20,10 @@
// Neo is a driver program for running and managing NEO databases. // Neo is a driver program for running and managing NEO databases.
package main package main
import "lab.nexedi.com/kirr/go123/prog" import (
"lab.nexedi.com/kirr/go123/prog"
"lab.nexedi.com/kirr/neo/go/internal/log"
)
var commands = prog.CommandRegistry{ var commands = prog.CommandRegistry{
{"master", masterSummary, masterUsage, masterMain}, {"master", masterSummary, masterUsage, masterMain},
...@@ -39,5 +42,6 @@ func main() { ...@@ -39,5 +42,6 @@ func main() {
HelpTopics: helpTopics, HelpTopics: helpTopics,
} }
defer log.Flush()
prog.Main() prog.Main()
} }
...@@ -86,7 +86,7 @@ func neoMatch(r io.Reader) bool { ...@@ -86,7 +86,7 @@ func neoMatch(r io.Reader) bool {
// listenAndServe runs service on laddr. // listenAndServe runs service on laddr.
// //
// It starts listening, multiplexes incoming connection to NEO and HTTP // It starts listening, multiplexes incoming connection to NEO and HTTP
// protocols, passes NEO connections to service and passes HTTP connection to // protocols, passes NEO connections to serve and passes HTTP connection to
// default HTTP mux. // default HTTP mux.
// //
// Default HTTP mux can be assumed to contain /debug/pprof and the like. // Default HTTP mux can be assumed to contain /debug/pprof and the like.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment