Skip to content

Commit c0e99e5

Browse files
deepcopy validation struct for inital datastore
1 parent 5f1e193 commit c0e99e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/server/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ func (s *Server) createInitialDatastores(ctx context.Context) {
275275

276276
for _, dsCfg := range s.config.Datastores {
277277
log.Debugf("creating datastore %s", dsCfg.Name)
278-
dsCfg.Validation = s.config.Validation
278+
dsCfg.Validation = s.config.Validation.DeepCopy()
279279
go func(dsCfg *config.DatastoreConfig) {
280280
defer wg.Done()
281281
// TODO: handle error

0 commit comments

Comments
 (0)