update config

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2024-11-16 19:57:00 +03:00
parent f610dd4e47
commit 22db6d86ba
3 changed files with 53 additions and 35 deletions

View File

@@ -2,6 +2,7 @@ package grpcconn
import (
"context"
"strings"
"time"
"github.com/google/uuid"
@@ -28,3 +29,9 @@ func Call(ctx context.Context, l logger.Logger, c client.Client, addr string, td
}
return nil
}
func ServiceMethod(method string) (string, string, string) {
idx1 := strings.LastIndex(method, ".")
idx2 := strings.Index(method[:idx1], ".")
return method[:idx2], method[idx2+1 : idx1], method[idx1+1:]
}