This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
""" | |
同步 nacos 服务 | |
Version: 0.2 | |
Author: WenShun Chen | |
ref api:https://nacos.io/zh-cn/docs/open-api.html | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.netflix.hystrix.strategy.concurrency.HystrixRequestContext; | |
import com.netflix.hystrix.strategy.concurrency.HystrixRequestVariableDefault; | |
import java.util.Map; | |
/** | |
* @author [email protected] on 2023/5/16 | |
* | |
* In order to pass request context to a FeignClient thread. | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.xxx.util; | |
import com.google.common.hash.BloomFilter; | |
import com.google.common.hash.Funnels; | |
import org.springframework.context.annotation.Scope; | |
import org.springframework.stereotype.Component; | |
import java.nio.charset.StandardCharsets; | |
import java.util.Iterator; | |
import java.util.concurrent.CopyOnWriteArrayList; |