mirror of
https://github.com/dolthub/dolt.git
synced 2026-05-08 02:36:27 -05:00
server: print port listening on at startup
This commit is contained in:
@@ -193,6 +193,7 @@ func (s *dataStoreServer) connState(c net.Conn, cs http.ConnState) {
|
||||
|
||||
// Blocks while the dataStoreServer is listening. Running on a separate go routine is supported.
|
||||
func (s *dataStoreServer) Run() {
|
||||
fmt.Printf("Listening on port %d...\n", s.port)
|
||||
l, err := net.Listen("tcp", fmt.Sprintf(":%d", s.port))
|
||||
d.Chk.NoError(err)
|
||||
s.l = &l
|
||||
|
||||
Reference in New Issue
Block a user