Skip to content

Commit 4b9d770

Browse files
authored
Remove setHealth (#670)
1 parent 088be93 commit 4b9d770

File tree

3 files changed

+0
-43
lines changed

3 files changed

+0
-43
lines changed

.code-samples.meilisearch.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@ get_indexes_stats_1: |-
153153
client.stats()
154154
get_health_1: |-
155155
client.isHealthy()
156-
update_health_1: |-
157156
get_version_1: |-
158157
client.version()
159158
distinct_attribute_guide_1: |-

src/meilisearch.ts

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -107,45 +107,6 @@ class MeiliSearch implements Types.MeiliSearchInterface {
107107
return await this.httpRequest.get(url).then(() => true)
108108
}
109109

110-
/**
111-
* Change the healthyness to healthy
112-
* @memberof MeiliSearch
113-
* @method setHealthy
114-
*/
115-
async setHealthy(): Promise<void> {
116-
const url = '/health'
117-
118-
return await this.httpRequest.put(url, {
119-
health: true,
120-
})
121-
}
122-
123-
/**
124-
* Change the healthyness to unhealthy
125-
* @memberof MeiliSearch
126-
* @method setUnhealthy
127-
*/
128-
async setUnhealthy(): Promise<void> {
129-
const url = '/health'
130-
131-
return await this.httpRequest.put(url, {
132-
health: false,
133-
})
134-
}
135-
136-
/**
137-
* Set the healthyness to health value
138-
* @memberof MeiliSearch
139-
* @method changeHealthTo
140-
*/
141-
async changeHealthTo(health: boolean): Promise<void> {
142-
const url = '/health'
143-
144-
return await this.httpRequest.put(url, {
145-
health,
146-
})
147-
}
148-
149110
///
150111
/// STATS
151112
///

src/types.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -229,9 +229,6 @@ export interface MeiliSearchInterface {
229229
createIndex: <T>(uid: string, options?: IndexOptions) => Promise<Index<T>>
230230
getKeys: () => Promise<Keys>
231231
isHealthy: () => Promise<true>
232-
setHealthy: () => Promise<void>
233-
setUnhealthy: () => Promise<void>
234-
changeHealthTo: (health: boolean) => Promise<void>
235232
stats: () => Promise<Stats>
236233
version: () => Promise<Version>
237234
createDump: () => Promise<EnqueuedDump>

0 commit comments

Comments
 (0)