Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
apollo
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openSource
apollo
Commits
76bd56d9
Commit
76bd56d9
authored
Jun 08, 2016
by
张乐
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #258 from nobodyiam/client-app-id-not-set
prevent crash when app.id is not set
parents
a0bee9d4
8737d49c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
9 deletions
+16
-9
RemoteConfigRepository.java
...ip/framework/apollo/internals/RemoteConfigRepository.java
+16
-9
No files found.
apollo-client/src/main/java/com/ctrip/framework/apollo/internals/RemoteConfigRepository.java
View file @
76bd56d9
...
@@ -259,15 +259,22 @@ public class RemoteConfigRepository extends AbstractConfigRepository {
...
@@ -259,15 +259,22 @@ public class RemoteConfigRepository extends AbstractConfigRepository {
}
}
private
void
scheduleLongPollingRefresh
()
{
private
void
scheduleLongPollingRefresh
()
{
final
String
appId
=
m_configUtil
.
getAppId
();
try
{
final
String
cluster
=
m_configUtil
.
getCluster
();
final
String
appId
=
m_configUtil
.
getAppId
();
final
String
dataCenter
=
m_configUtil
.
getDataCenter
();
final
String
cluster
=
m_configUtil
.
getCluster
();
m_longPollingService
.
submit
(
new
Runnable
()
{
final
String
dataCenter
=
m_configUtil
.
getDataCenter
();
@Override
m_longPollingService
.
submit
(
new
Runnable
()
{
public
void
run
()
{
@Override
doLongPollingRefresh
(
appId
,
cluster
,
dataCenter
);
public
void
run
()
{
}
doLongPollingRefresh
(
appId
,
cluster
,
dataCenter
);
});
}
});
}
catch
(
Throwable
ex
)
{
ApolloConfigException
exception
=
new
ApolloConfigException
(
"Schedule long polling refresh failed"
,
ex
);
Cat
.
logError
(
exception
);
logger
.
warn
(
ExceptionUtil
.
getDetailMessage
(
exception
));
}
}
}
private
void
doLongPollingRefresh
(
String
appId
,
String
cluster
,
String
dataCenter
)
{
private
void
doLongPollingRefresh
(
String
appId
,
String
cluster
,
String
dataCenter
)
{
...
...
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