mirror of
https://github.com/garethgeorge/backrest.git
synced 2025-12-15 01:55:35 +00:00
Add webui
This commit is contained in:
@@ -20,7 +20,7 @@ func serveGRPC(ctx context.Context, socket string) error {
|
||||
return fmt.Errorf("failed to listen: %w", err)
|
||||
}
|
||||
grpcServer := grpc.NewServer()
|
||||
v1.RegisterResticUIServer(grpcServer, &server{})
|
||||
v1.RegisterResticUIServer(grpcServer, NewServer())
|
||||
go func() {
|
||||
<-ctx.Done()
|
||||
grpcServer.GracefulStop()
|
||||
|
||||
Reference in New Issue
Block a user