Skip to content

Commit

Permalink
chore: use RWMutex
Browse files Browse the repository at this point in the history
  • Loading branch information
pseudoyu committed Jul 26, 2024
1 parent 2e5a902 commit a4ff4a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/node/component/decentralized/component.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const MaxRecentRequests = 10

var (
RecentRequests []string
recentRequestsMutex sync.Mutex
recentRequestsMutex sync.RWMutex
)

func (c *Component) Name() string {
Expand Down

0 comments on commit a4ff4a8

Please sign in to comment.