- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 55 for newKeys (0.13 sec)
-
pkg/ledger/smt.go
// insert shortcut in slices newKeys = append(newKeys, keys[:i]...) newKeys = append(newKeys, shortcutKey) newKeys = append(newKeys, keys[i:]...) newVals = append(newVals, values[:i]...) newVals = append(newVals, shortcutVal) newVals = append(newVals, values[i:]...) break } } } return newKeys, newVals } const batchLen int = 31
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Aug 08 16:43:05 UTC 2023 - 14K bytes - Viewed (0) -
pkg/ledger/smt_test.go
} } // Append to the trie newKeys := getFreshData(5) newValues := getFreshData(5) ch = make(chan result, 1) smt.update(root, newKeys, newValues, nil, 0, smt.trieHeight, false, true, ch) res = <-ch newRoot := res.update if bytes.Equal(root, newRoot) { t.Fatal("trie not updated") } for i, newKey := range newKeys { newValue, _ := smt.get(newRoot, newKey, nil, 0, smt.trieHeight)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Aug 08 16:43:05 UTC 2023 - 7.9K bytes - Viewed (0) -
cmd/xl-storage-meta-inline.go
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Apr 04 12:04:40 UTC 2024 - 9.5K bytes - Viewed (0) -
pkg/test/util/yml/cache.go
c.mu.Lock() defer c.mu.Unlock() parts, err := Parse(yamlText) if err != nil { return nil, err } var result []CacheKey newKeys := make(map[CacheKey]struct{}) for _, p := range parts { key := toKey(p.Descriptor) result = append(result, key) newKeys[key] = struct{}{} state, found := c.resources[key] if found { if err = c.deleteFile(state.file); err != nil { return nil, err }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Aug 03 18:09:59 UTC 2021 - 4K bytes - Viewed (0) -
pilot/pkg/model/jwks_resolver.go
if ok1 && ok2 { return key1IdStr < key2IdStr } } } return len(key1) < len(key2) }) sort.Slice(newKeys, func(i, j int) bool { key1, ok1 := newKeys[i].(map[string]any) key2, ok2 := newKeys[j].(map[string]any) if ok1 && ok2 { key1Id, kid1Exists := key1["kid"] key2Id, kid2Exists := key2["kid"] if kid1Exists && kid2Exists {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Feb 23 09:47:21 UTC 2024 - 20.3K bytes - Viewed (0) -
pilot/pkg/config/file/store.go
resources, parseErrs := s.parseContent(s.schemas, name, yamlText) oldKeys := s.byFile[name] newKeys := make(map[kubeResourceKey]config.GroupVersionKind) for _, r := range resources { key := r.newKey() oldSha, found := s.shas[key] if !found || oldSha != r.sha { scope.Debugf("KubeSource.ApplyContent: Set: %v/%v", r.schema.GroupVersionKind(), r.fullName())
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Feb 02 17:36:47 UTC 2024 - 18.2K bytes - Viewed (0) -
pkg/kube/krt/collection.go
newRes, newExists := results[key] // Find the old O object oldRes, oldExists := h.collectionState.outputs[key] e := Event[O]{} if newExists && oldExists { if equal(newRes, oldRes) { // NOP change, skip continue } e.Event = controllers.EventUpdate e.New = &newRes e.Old = &oldRes h.collectionState.outputs[key] = newRes } else if newExists {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 10 23:33:56 UTC 2024 - 19.4K bytes - Viewed (0) -
src/crypto/tls/common.go
if len(keys) == 0 { panic("tls: keys must have at least one key") } newKeys := make([]ticketKey, len(keys)) for i, bytes := range keys { newKeys[i] = c.ticketKeyFromBytes(bytes) } c.mutex.Lock() c.sessionTicketKeys = newKeys c.mutex.Unlock() } func (c *Config) rand() io.Reader { r := c.Rand if r == nil { return rand.Reader
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:10:12 UTC 2024 - 59.1K bytes - Viewed (0) -
pkg/registry/discovery/endpointslice/strategy_test.go
Strategy.PrepareForUpdate(context.TODO(), tc.newEPS, tc.oldEPS) if !apiequality.Semantic.DeepEqual(tc.newEPS, tc.expectedEPS) { t.Errorf("Expected %+v\nGot: %+v", tc.expectedEPS, tc.newEPS) } }) } } func Test_dropTopologyOnV1(t *testing.T) { testcases := []struct { name string v1Request bool newEPS *discovery.EndpointSlice originalEPS *discovery.EndpointSlice
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 27.3K bytes - Viewed (0) -
cmd/xl-storage-format-v2_test.go
vMod := make([][]xlMetaV2ShallowVersion, 0, len(vers)) for i, ver := range vers { newVers := make([]xlMetaV2ShallowVersion, 0, len(ver)) for _, v := range ver { v.header.Signature = [4]byte{byte(i + 10), 0, 0, 0} newVers = append(newVers, v) } vMod = append(vMod, newVers) } merged := mergeXLV2Versions(i, false, 0, vMod...) if len(merged) == 0 {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri Mar 08 17:50:48 UTC 2024 - 36.4K bytes - Viewed (0)