Skip to content

Commit 334c135

Browse files
Mike Niklescsweichel
authored andcommitted
Spell "instance" correctly.
1 parent 4f59081 commit 334c135

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

components/dashboard/src/settings/Integrations.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ function GitIntegrations() {
389389
<div className="w-full flex h-80 mt-2 rounded-xl bg-gray-100 dark:bg-gray-900">
390390
<div className="m-auto text-center">
391391
<h3 className="self-center text-gray-500 dark:text-gray-400 mb-4">No Git Integrations</h3>
392-
<div className="text-gray-500 mb-6">In addition to the default Git Providers you can authorize<br /> with a self-hosted instace of a provider.</div>
392+
<div className="text-gray-500 mb-6">In addition to the default Git Providers you can authorize<br /> with a self-hosted instance of a provider.</div>
393393
<button className="self-center" onClick={() => setModal({ mode: "new" })}>New Integration</button>
394394
</div>
395395
</div>

components/ws-manager-bridge/src/bridge.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -283,14 +283,14 @@ export class WorkspaceManagerBridge implements Disposable {
283283
let ctx: TraceContext = {};
284284

285285
const runningInstances = await this.workspaceDB.trace(ctx).findRunningInstancesWithWorkspaces(installation);
286-
const runningInstacesIdx = new Map<string, RunningWorkspaceInfo>();
287-
runningInstances.forEach(i => runningInstacesIdx.set(i.latestInstance.id, i));
286+
const runningInstancesIdx = new Map<string, RunningWorkspaceInfo>();
287+
runningInstances.forEach(i => runningInstancesIdx.set(i.latestInstance.id, i));
288288

289289
const actuallyRunningInstances = await client.getWorkspaces(ctx, new GetWorkspacesRequest());
290-
actuallyRunningInstances.getStatusList().forEach(s => runningInstacesIdx.delete(s.getId()));
290+
actuallyRunningInstances.getStatusList().forEach(s => runningInstancesIdx.delete(s.getId()));
291291

292292
const promises: Promise<any>[] = [];
293-
for (const [instanceId, ri] of runningInstacesIdx.entries()) {
293+
for (const [instanceId, ri] of runningInstancesIdx.entries()) {
294294
const instance = ri.latestInstance;
295295
if (!(instance.status.phase === 'running' || durationLongerThanSeconds(Date.parse(instance.creationTime), maxTimeToRunningPhaseSeconds))) {
296296
log.debug({ instanceId }, "skipping instance", { phase: instance.status.phase, creationTime: instance.creationTime, region: instance.region });

components/ws-manager/pkg/manager/testing_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import (
2626
// Because we need to modify package internal state
2727
//
2828

29-
// forTestingOnlyGetManager creates a workspace manager instace for testing purposes
29+
// forTestingOnlyGetManager creates a workspace manager instance for testing purposes
3030
func forTestingOnlyGetManager(t *testing.T, objects ...client.Object) *Manager {
3131
config := Configuration{
3232
Namespace: "default",

0 commit comments

Comments
 (0)