From ab31569e6a0d9dcbb1db81bd5df9377722cf7d52 Mon Sep 17 00:00:00 2001 From: Matrix-X Date: Wed, 25 Sep 2024 13:35:59 +0800 Subject: [PATCH] update --- internal/provider/brainx/service.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/provider/brainx/service.go b/internal/provider/brainx/service.go index 3a887762..7ca4c604 100644 --- a/internal/provider/brainx/service.go +++ b/internal/provider/brainx/service.go @@ -7,13 +7,13 @@ import ( ) type BrainXServiceProvider struct { - client *BrainXProviderClient + Client *BrainXProviderClient } func NewBrainXServiceProvider(svcCtx *svc.ServiceContext) *BrainXServiceProvider { return &BrainXServiceProvider{ - client: NewBrainXProviderClient(&svcCtx.Config, svcCtx.PowerX.Cache), + Client: NewBrainXProviderClient(&svcCtx.Config, svcCtx.PowerX.Cache), } } @@ -23,7 +23,7 @@ func (sp *BrainXServiceProvider) HelloWorld() (message string, err error) { "name": "powerx", "message": "hello", } - resp, err := sp.client.HTTPPost(url, jsonBody, true, nil) + resp, err := sp.Client.HTTPPost(url, jsonBody, true, nil) if err != nil { return "", err }