Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
discovery
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
谢捷峰
discovery
Commits
387460c8
Commit
387460c8
authored
Jun 25, 2018
by
Nepxion
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改提示信息
parent
34e2c786
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
discovery-plugin-config-center/src/main/java/com/nepxion/discovery/plugin/configcenter/ConfigSubscriber.java
+3
-3
No files found.
discovery-plugin-config-center/src/main/java/com/nepxion/discovery/plugin/configcenter/ConfigSubscriber.java
View file @
387460c8
...
@@ -36,20 +36,20 @@ public class ConfigSubscriber {
...
@@ -36,20 +36,20 @@ public class ConfigSubscriber {
Boolean
remoteConfigEnabled
=
pluginContextAware
.
isRemoteConfigEnabled
();
Boolean
remoteConfigEnabled
=
pluginContextAware
.
isRemoteConfigEnabled
();
if
(!
discoveryControlEnabled
)
{
if
(!
discoveryControlEnabled
)
{
LOG
.
info
(
"********** Discovery control is disabled,
reject to accept remote push
**********"
);
LOG
.
info
(
"********** Discovery control is disabled,
ignore to subscribe
**********"
);
return
;
return
;
}
}
if
(!
remoteConfigEnabled
)
{
if
(!
remoteConfigEnabled
)
{
LOG
.
info
(
"********** Remote config is disabled,
reject to accept remote push
**********"
);
LOG
.
info
(
"********** Remote config is disabled,
ignore to subscribe
**********"
);
return
;
return
;
}
}
Object
object
=
event
.
getSource
();
Object
object
=
event
.
getSource
();
if
(
object
instanceof
InputStream
)
{
if
(
object
instanceof
InputStream
)
{
LOG
.
info
(
"********** Remote config change has been
retriev
ed **********"
);
LOG
.
info
(
"********** Remote config change has been
subscrib
ed **********"
);
InputStream
inputStream
=
(
InputStream
)
object
;
InputStream
inputStream
=
(
InputStream
)
object
;
configParser
.
parse
(
inputStream
);
configParser
.
parse
(
inputStream
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment