Skip to content

Commit

Permalink
feat(dashboard): add favicon.ico
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahoo-Wang committed Apr 7, 2024
1 parent 48dc3b6 commit e2007fc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
Binary file added cosky-dashboard/src/favicon.ico
Binary file not shown.
1 change: 1 addition & 0 deletions cosky-dashboard/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
content="High-performance, low-cost microservice governance platform. Service Discovery and Configuration Service.">
<base href="/dashboard/">
<!-- <base href="/">-->
<link rel="icon" type="image/x-icon" href="favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,15 +117,13 @@ class ConsistencyRedisServiceDiscovery(
require(instanceId.isNotBlank()) { "instanceId must not be blank!" }
val namespacedServiceId = NamespacedServiceId(namespace, serviceId)
val instancesMono = serviceMapInstances[namespacedServiceId]
return if (instancesMono == null) {
delegate.getInstance(namespace, serviceId, instanceId)
} else {
instancesMono
.flatMapIterable(Function.identity())
.switchIfEmpty(delegate.getInstance(namespace, serviceId, instanceId))
.filter { it.instanceId == instanceId }
.next()
}
?: return delegate.getInstance(namespace, serviceId, instanceId)

return instancesMono
.flatMapIterable(Function.identity())
.switchIfEmpty(delegate.getInstance(namespace, serviceId, instanceId))
.filter { it.instanceId == instanceId }
.next()
}

override fun getInstance(namespace: String, serviceId: String, instanceId: String): Mono<ServiceInstance> {
Expand Down

0 comments on commit e2007fc

Please sign in to comment.