Skip to content

Improve thread safety in MerchantNameNormalizer #27

@coderabbitai

Description

@coderabbitai

Description

The MerchantNameNormalizer object uses mutable hash maps without synchronization, which could lead to race conditions if accessed concurrently during sync operations.

Context

This issue was identified during the review of PR #26 and discussed in this comment thread.

Details

The following hash maps in MerchantNameNormalizer are not thread-safe:

  • names
  • logos
  • merchantIds

These should be replaced with thread-safe alternatives or have appropriate synchronization added.

References

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions