summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-06-07 17:57:09 +0300
committerWolfy-J <[email protected]>2018-06-07 17:57:09 +0300
commit8d018bc74686fbfe650ab48e7d11dd8d67e92eeb (patch)
tree6949a3921040b5541af6af3b8ce0c53ef3ac9068
parent85dda8f4eabed58d813779944aa5e2e03bcbb05e (diff)
CS
-rw-r--r--rpc/service.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/rpc/service.go b/rpc/service.go
index e19c9d7d..4454f8e6 100644
--- a/rpc/service.go
+++ b/rpc/service.go
@@ -8,6 +8,8 @@ import (
"sync"
)
+// todo: improved logging
+
// Service is RPC service.
type Service struct {
cfg *config
@@ -21,8 +23,6 @@ type Service struct {
// WithConfig must return Service instance configured with the given environment. Must return error in case of
// misconfiguration, might return nil as Service if Service is not enabled.
func (s *Service) WithConfig(cfg service.Config, reg service.Registry) (service.Service, error) {
- // todo: logging ?
-
config := &config{}
if err := cfg.Unmarshal(config); err != nil {
return nil, err