Skip to content

Commit 56f4df2

Browse files
committed
rename NewStoreManager -> NewManager
1 parent 9f546d0 commit 56f4df2

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
return err
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
var acs 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
func ExampleDeploymentValues() {
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
var stringField 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
var stringField 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
type TestEntries struct {

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
type Manager struct{}
1010

11-
func NewStoreManager() *Manager {
11+
func NewManager() *Manager {
1212
return &Manager{}
1313
}
1414

0 commit comments

Comments
 (0)