fix: standardize on fully qualified snapshot_id and decouple protobufs from restic package

This commit is contained in:
Gareth George
2023-11-26 00:44:04 -08:00
parent 0221a23802
commit e6031bfa54
16 changed files with 376 additions and 159 deletions

View File

@@ -53,7 +53,6 @@ func loggingFunc(l *zap.Logger) logging.Logger {
})
}
func serveGRPC(ctx context.Context, socket string, server *Server) error {
lis, err := net.Listen("unix", socket)
if err != nil {
@@ -110,4 +109,4 @@ func ServeAPI(ctx context.Context, server *Server, mux *http.ServeMux) error {
apiMux := runtime.NewServeMux()
mux.Handle("/api/", http.StripPrefix("/api", apiMux))
return serveHTTPHandlers(ctx, server, apiMux)
}
}