We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e72b755 commit 44c7334Copy full SHA for 44c7334
internal/resource/resource_plugin.go
@@ -29,7 +29,7 @@ type Resource struct {
29
messagePipe bus.MessagePipeInterface
30
resourceService resourceServiceInterface
31
agentConfig *config.Config
32
- agentConfigMutex sync.Mutex
+ agentConfigMutex *sync.Mutex
33
}
34
35
type errResponse struct {
@@ -48,7 +48,8 @@ var _ bus.Plugin = (*Resource)(nil)
48
49
func NewResource(agentConfig *config.Config) *Resource {
50
return &Resource{
51
- agentConfig: agentConfig,
+ agentConfig: agentConfig,
52
+ agentConfigMutex: &sync.Mutex{},
53
54
55
0 commit comments