zero-examples icon indicating copy to clipboard operation
zero-examples copied to clipboard

Update bloom.go

Open alanxiongxing opened this issue 1 year ago • 0 comments

用法过时了,已更新

Greptile Summary

This PR updates the Redis connection setup in the bloom filter example, addressing a deprecated function usage but introducing potential security concerns.

  • Replaced deprecated redis.New() with redis.MustNewRedis() in bloom/bloom.go
  • Added RedisConf struct with hardcoded Redis host, password, and node type
  • Potential security risk: Hardcoded Redis password "redis_6X6RSk" in the code
  • Reduced flexibility: Redis configuration now hardcoded instead of being parameterized
  • Consider moving Redis configuration to a separate, non-versioned config file for better security and flexibility

alanxiongxing avatar Sep 14 '24 03:09 alanxiongxing