Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit56f4df2

Browse files
committed
rename NewStoreManager -> NewManager
1 parent9f546d0 commit56f4df2

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

‎cli/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,7 @@ func (r *RootCmd) Server(newAPI func(context.Context, *coderd.Options) (*coderd.
821821
returnerr
822822
}
823823

824-
options.RuntimeConfig=runtimeconfig.NewStoreManager()
824+
options.RuntimeConfig=runtimeconfig.NewManager()
825825

826826
// This should be output before the logs start streaming.
827827
cliui.Infof(inv.Stdout,"\n==> Logs will stream in below (press ctrl+c to gracefully exit):")

‎coderd/coderdtest/coderdtest.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ func NewOptions(t testing.TB, options *Options) (func(http.Handler), context.Can
255255
varacs dbauthz.AccessControlStore= dbauthz.AGPLTemplateAccessControlStore{}
256256
accessControlStore.Store(&acs)
257257

258-
runtimeManager:=runtimeconfig.NewStoreManager()
258+
runtimeManager:=runtimeconfig.NewManager()
259259
options.Database=dbauthz.New(options.Database,options.Authorizer,*options.Logger,accessControlStore)
260260

261261
// Some routes expect a deployment ID, so just make sure one exists.

‎coderd/runtimeconfig/deploymententry_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323
funcExampleDeploymentValues() {
2424
ctx:=context.Background()
2525
db:=dbmem.New()
26-
st:=runtimeconfig.NewStoreManager()
26+
st:=runtimeconfig.NewManager()
2727

2828
// Define the field, this will usually live on Deployment Values.
2929
varstringField runtimeconfig.DeploymentEntry[*serpent.String]
@@ -75,7 +75,7 @@ func TestResolveDBError(t *testing.T) {
7575
Times(1).
7676
Return(dbErr)
7777

78-
st:=runtimeconfig.NewStoreManager()
78+
st:=runtimeconfig.NewManager()
7979
varstringField runtimeconfig.DeploymentEntry[*serpent.String]
8080
stringField.Initialize("string-field")
8181
stringField.SetStartupValue("default")
@@ -100,7 +100,7 @@ func TestSerpentDeploymentEntry(t *testing.T) {
100100

101101
ctx:=testutil.Context(t,testutil.WaitMedium)
102102
db,_:=dbtestutil.NewDB(t)
103-
st:=runtimeconfig.NewStoreManager()
103+
st:=runtimeconfig.NewManager()
104104

105105
// TestEntries is how entries are defined in deployment values.
106106
typeTestEntriesstruct {

‎coderd/runtimeconfig/entry_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ func TestEntry(t *testing.T) {
6868
t.Parallel()
6969

7070
ctx:=testutil.Context(t,testutil.WaitShort)
71-
mgr:=runtimeconfig.NewStoreManager()
71+
mgr:=runtimeconfig.NewManager()
7272
db:=dbmem.New()
7373

7474
var (
@@ -102,7 +102,7 @@ func TestEntry(t *testing.T) {
102102
t.Parallel()
103103

104104
ctx:=testutil.Context(t,testutil.WaitShort)
105-
mgr:=runtimeconfig.NewStoreManager()
105+
mgr:=runtimeconfig.NewManager()
106106
db:=dbmem.New()
107107

108108
var (

‎coderd/runtimeconfig/manager.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
// TODO: Implement caching layer.
99
typeManagerstruct{}
1010

11-
funcNewStoreManager()*Manager {
11+
funcNewManager()*Manager {
1212
return&Manager{}
1313
}
1414

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp