Skip to content

Commit

Permalink
feat: BackendConfig - namingMap,add default metadata map (#12)
Browse files Browse the repository at this point in the history
--story=114894962
  • Loading branch information
huiresurgeran authored Dec 19, 2023
1 parent b8d1c01 commit 19063ae
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
import com.tencent.trpc.core.worker.WorkerPoolManager;
import com.tencent.trpc.core.worker.spi.WorkerPool;
import java.net.InetSocketAddress;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
Expand Down Expand Up @@ -114,7 +115,11 @@ public class BackendConfig extends BaseProtocolConfig {
* The parameters of naming's map and namingUrl together form the naming configuration and put namingOptions
*/
@ConfigProperty(name = "naming_map")
protected Map<String, Object> namingMap = Maps.newHashMap();
protected Map<String, Object> namingMap = new HashMap<String, Object>() {
{
put(Constants.METADATA, Maps.newHashMap());
}
};
/**
* Environment
*/
Expand Down

0 comments on commit 19063ae

Please sign in to comment.