MCPcopy Create free account
hub / github.com/distributedio/titan / Stop

Method Stop

titan.go:69–72  ·  view source on GitHub ↗

Stop the server

()

Source from the content-addressed store, hash-verified

67
68//Stop the server
69func (s *Server) Stop() error {
70 zap.L().Info("titan serve stop", zap.String("addr", s.lis.Addr().String()))
71 return s.lis.Close()
72}
73
74//GracefulStop the server, TODO close clients connections first
75func (s *Server) GracefulStop() error {

Callers 5

CloseFunction · 0.45
StartGCFunction · 0.45
StartTiKVGCFunction · 0.45
StartZTFunction · 0.45
StartExpireFunction · 0.45

Calls 3

InfoMethod · 0.80
StringMethod · 0.45
CloseMethod · 0.45

Tested by

no test coverage detected