refactor(tvix/nar-bridge): update to new separated protos

Change-Id: I5eaadc837a4d3a7f635574437127a22de88f556b
Reviewed-on: https://cl.tvl.fyi/c/depot/+/9407
Tested-by: BuildkiteCI
Reviewed-by: Connor Brewster <cbrewster@hey.com>
Autosubmit: flokli <flokli@flokli.de>
This commit is contained in:
Florian Klink 2023-09-22 16:38:10 +03:00 committed by flokli
parent e13c86d916
commit 732dc68727
16 changed files with 170 additions and 158 deletions

View file

@ -11,6 +11,7 @@ import (
"google.golang.org/grpc"
"google.golang.org/grpc/credentials/insecure"
castorev1pb "code.tvl.fyi/tvix/castore/protos"
"code.tvl.fyi/tvix/nar-bridge/pkg/server"
storev1pb "code.tvl.fyi/tvix/store/protos"
"github.com/sirupsen/logrus"
@ -47,8 +48,8 @@ func main() {
defer conn.Close()
s := server.New(
storev1pb.NewDirectoryServiceClient(conn),
storev1pb.NewBlobServiceClient(conn),
castorev1pb.NewDirectoryServiceClient(conn),
castorev1pb.NewBlobServiceClient(conn),
storev1pb.NewPathInfoServiceClient(conn),
cli.EnableAccessLog,
30,