Skip to content

Commit

Permalink
refactor:鉴权能力优化调整
Browse files Browse the repository at this point in the history
  • Loading branch information
chuntaojun committed Sep 12, 2024
1 parent 07f7d33 commit 21f823d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Binary file added __debug_bin4020289454
Binary file not shown.
2 changes: 1 addition & 1 deletion cache/namespace/namespace.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ func (nsCache *namespaceCache) singleUpdate() (error, bool) {
}

func (nsCache *namespaceCache) Query(ctx context.Context, args *types.NamespaceArgs) (uint32, []*model.Namespace, error) {
if err := nsCache.Update(); err != nil {
if err := nsCache.forceQueryUpdate(); err != nil {
return 0, nil, err
}

Expand Down
2 changes: 1 addition & 1 deletion store/boltdb/namespace.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ func (n *namespaceStore) GetMoreNamespaces(mtime time.Time) ([]*model.Namespace,
if !ok {
return false
}
return mTimeValue.(time.Time).After(mtime)
return !mTimeValue.(time.Time).Before(mtime)
})
if err != nil {
return nil, err
Expand Down
4 changes: 2 additions & 2 deletions store/mysql/scripts/polaris_server.sql
Original file line number Diff line number Diff line change
Expand Up @@ -885,9 +885,9 @@ VALUES
}',
'json',
'Spring Cloud Gateway 染色规则',
NOW (),
NOW(),
'polaris',
NOW (),
NOW(),
'polaris'
);

Expand Down

0 comments on commit 21f823d

Please sign in to comment.