mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-05-22 23:07:04 +00:00
14 lines
296 B
Go
14 lines
296 B
Go
package server
|
|
|
|
import (
|
|
"context"
|
|
"github.com/fabbez/topiad/cmd/kaspawallet/daemon/pb"
|
|
)
|
|
|
|
func (s *server) Shutdown(ctx context.Context, request *pb.ShutdownRequest) (*pb.ShutdownResponse, error) {
|
|
s.lock.Lock()
|
|
defer s.lock.Unlock()
|
|
close(s.shutdown)
|
|
return &pb.ShutdownResponse{}, nil
|
|
}
|