Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ggbocoder committed Sep 7, 2024
1 parent cc38738 commit 9d2fffc
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ public enum RegistryType {
*/
Custom,
/**
* NamingServer registry type
* Seata namingServer registry type
*/
NamingServer;
Seata;

/**
* Gets type.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public class NamingserverRegistryServiceImpl implements RegistryService<NamingLi
private static final String NAMING_SERVICE_URL_KEY = "server-addr";
private static final String FILE_ROOT_REGISTRY = "registry";
private static final String FILE_CONFIG_SPLIT_CHAR = ".";
private static final String REGISTRY_TYPE = "namingserver";
private static final String REGISTRY_TYPE = "seata";
private static final String HTTP_PREFIX = "http://";
private static final String TIME_OUT_KEY = "timeout";

Expand Down
4 changes: 2 additions & 2 deletions script/client/conf/registry.conf
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#

registry {
# file 、nacos 、eureka、redis、zk、consul、etcd3、sofa、custom、raft、namingserver
# file 、nacos 、eureka、redis、zk、consul、etcd3、sofa、custom、raft、seata
type = "file"

raft {
Expand Down Expand Up @@ -44,7 +44,7 @@ registry {
##if use Nacos naming meta-data for SLB service registry, specify nacos address pattern rules here
#slbPattern = ""
}
namingserver {
seata {
server-addr = "127.0.0.1:8081"
namespace = "public"
heartbeat-period = 5000
Expand Down
4 changes: 2 additions & 2 deletions server/src/main/resources/application.example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,12 @@ seata:
server-addr: http://localhost:2379
key: seata.properties
registry:
# support: nacos 、 eureka 、 redis 、 zk 、 consul 、 etcd3 、 sofa
# support: nacos 、 eureka 、 redis 、 zk 、 consul 、 etcd3 、 sofa 、 seata
type: file
preferred-networks: 30.240.*
metadata:
weight: 100
namingserver:
seata:
server-addr: 127.0.0.1:8081
cluster: default
namespace: public
Expand Down

0 comments on commit 9d2fffc

Please sign in to comment.