From fd4148bcb55921283cda9de331d1f371a3f4cdd8 Mon Sep 17 00:00:00 2001 From: Arnas Udovicius Date: Tue, 30 Aug 2022 19:54:31 +0300 Subject: [PATCH] support many languages --- go.mod | 2 +- go.sum | 4 ++-- server.go | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/go.mod b/go.mod index 8711b28..1b1a7c2 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module g.arns.lt/zordsdavini/arns-lt-tree-push-service go 1.19 require ( - g.arns.lt/zordsdavini/zord-tree v0.2.1 + g.arns.lt/zordsdavini/zord-tree v0.2.3 google.golang.org/grpc v1.48.0 google.golang.org/protobuf v1.28.1 ) diff --git a/go.sum b/go.sum index 776ce74..ccfcf05 100644 --- a/go.sum +++ b/go.sum @@ -2,8 +2,8 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMT cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= g.arns.lt/zordsdavini/abcex v1.0.0 h1:qQqlZ4DMfethCGK4I6yGaLqMrTzKNIshqpINd1l3t0E= g.arns.lt/zordsdavini/abcex v1.0.0/go.mod h1:YRcJgts3XZwI+LEkngpfUab3DkUAW387Irpr43hIym8= -g.arns.lt/zordsdavini/zord-tree v0.2.1 h1:GYbwojTqCTcr/e4oYNxTUCP7V/2cD8xn/AYOecYGnxo= -g.arns.lt/zordsdavini/zord-tree v0.2.1/go.mod h1:R9VMBwVwW6pu8yFIIgsMUv7YuWa48dj6DglkyXeTPik= +g.arns.lt/zordsdavini/zord-tree v0.2.3 h1:RNiaTg18TgUJDA278LxfKxUmeoz2yz0V8JA7huU3m/o= +g.arns.lt/zordsdavini/zord-tree v0.2.3/go.mod h1:R9VMBwVwW6pu8yFIIgsMUv7YuWa48dj6DglkyXeTPik= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= diff --git a/server.go b/server.go index a651f1b..2c34e27 100644 --- a/server.go +++ b/server.go @@ -98,10 +98,10 @@ func removeContents(dir string) error { return nil } -func simplifyFilter(filter []*TreeRequest_Filter) map[string]string { - simpleFilter := make(map[string]string) +func simplifyFilter(filter []*TreeRequest_Filter) map[string][]string { + simpleFilter := make(map[string][]string) for _, f := range filter { - simpleFilter[f.Key] = f.Value + simpleFilter[f.Key] = append(simpleFilter[f.Key], f.Value) } return simpleFilter