implement Save

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2021-05-09 18:47:50 +03:00
parent 1658fc9a93
commit b18033c417
6 changed files with 23 additions and 11 deletions

View File

@@ -1,6 +1,6 @@
// Code generated by protoc-gen-micro
// source: service.proto
package service
package servicepb
import (
context "context"

View File

@@ -1,6 +1,6 @@
// Code generated by protoc-gen-micro
// source: service.proto
package service
package servicepb
import (
context "context"
@@ -58,8 +58,9 @@ func RegisterConfigServer(s server.Server, sh ConfigServer, opts ...server.Handl
config
}
h := &configServer{sh}
var nopts []server.HandlerOption
for _, endpoint := range NewConfigEndpoints() {
opts = append(opts, api.WithEndpoint(endpoint))
nopts = append(nopts, api.WithEndpoint(endpoint))
}
return s.Handle(s.NewHandler(&Config{h}, opts...))
return s.Handle(s.NewHandler(&Config{h}, append(nopts, opts...)...))
}