Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 26 for newResp (0.05 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. internal/grid/handlers.go

    	if newResp == nil {
    		panic("newResp missing in NewStream")
    	}
    
    	s := newStreamHandler[Payload, Req, Resp](h)
    	if newReq != nil {
    		s.reqPool.New = func() Req {
    			return newReq()
    		}
    	} else {
    		s.InCapacity = 0
    	}
    	s.respPool.New = func() Resp {
    		return newResp()
    	}
    	s.newPayload = newPayload
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Tue Feb 18 16:25:55 GMT 2025
    - 27.7K bytes
    - Click Count (0)
  2. cmd/admin-handlers-idp-openid.go

    			continue
    		}
    		arn := dummyRoleARN
    		if config.RoleARN != "" {
    			arn = config.RoleARN
    		}
    		roleArnMap[arn] = config.Name
    		newResp := make(map[string]madmin.OpenIDUserAccessKeys)
    		cfgToUsersMap[config.Name] = newResp
    	}
    	if len(roleArnMap) == 0 {
    		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrAdminNoSuchConfigTarget), r.URL)
    		return
    	}
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sat Sep 06 17:38:46 GMT 2025
    - 7.6K bytes
    - Click Count (0)
  3. internal/grid/README.md

        }
    
        // Create a typed handler.
        // Due to current generics limitations, a constructor of the empty type must be provided.
        instance := grid.NewStream[*Payload, *Req, *Resp](h, newPayload, newReq, newResp)
    
        // Tweakable options
        instance.WithPayload = true // default true when newPayload != nil
        instance.OutCapacity = 1    // default
        instance.InCapacity = 1     // default true when newReq != nil
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Oct 10 18:57:03 GMT 2025
    - 9.4K bytes
    - Click Count (0)
  4. cmd/metrics.go

    	ch <- prometheus.MustNewConstMetric(
    		prometheus.NewDesc(
    			prometheus.BuildFQName(minioNamespace, "nodes", "online"),
    			"Total number of MinIO nodes online",
    			nil, nil),
    		prometheus.GaugeValue,
    		float64(nodesUp),
    	)
    	ch <- prometheus.MustNewConstMetric(
    		prometheus.NewDesc(
    			prometheus.BuildFQName(minioNamespace, "nodes", "offline"),
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Oct 24 04:06:31 GMT 2025
    - 16.7K bytes
    - Click Count (0)
  5. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/resolver/conflict/NewestConflictResolver.java

    /**
     * Resolves conflicting artifacts by always selecting the newest declaration. Newest is defined as the
     * declaration whose version is greater according to <code>ArtifactVersion.compareTo</code>.
     *
     * @see ArtifactVersion#compareTo
     * @since 3.0
     */
    @Named("newest")
    @Singleton
    @Deprecated
    public class NewestConflictResolver implements ConflictResolver {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 2.2K bytes
    - Click Count (0)
  6. internal/lru/lru.go

    	}
    }
    
    // deleteExpired deletes expired records from the oldest bucket, waiting for the newest entry
    // in it to expire first.
    func (c *LRU[K, V]) deleteExpired() {
    	c.mu.Lock()
    	bucketIdx := c.nextCleanupBucket
    	timeToExpire := time.Until(c.buckets[bucketIdx].newestEntry)
    	// wait for newest entry to expire before cleanup without holding lock
    	if timeToExpire > 0 {
    		c.mu.Unlock()
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Sat Mar 21 11:35:55 GMT 2026
    - 12.6K bytes
    - Click Count (0)
  7. src/main/java/org/codelibs/fess/llm/AbstractLlmClient.java

            } else if (budgetChars > CONTEXT_TRUNCATION_BUFFER) {
                // Fallback: truncate the newest message to fit
                final LlmMessage newest = history.get(history.size() - 1);
                final String truncated = newest.getContent().substring(0, Math.min(budgetChars, newest.getContent().length()));
                request.addMessage(new LlmMessage(newest.getRole(), truncated));
                if (logger.isDebugEnabled()) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 21 06:04:58 GMT 2026
    - 72K bytes
    - Click Count (0)
  8. src/test/java/org/codelibs/fess/helper/LogNotificationHelperTest.java

            for (int i = 0; i < 1100; i++) {
                helper.offer(new LogNotificationEvent(i, "ERROR", "org.test", "msg" + i, null));
            }
            List<LogNotificationEvent> events = helper.drainAll();
            // The newest events should be retained; oldest dropped
            // Last event should be msg1099
            LogNotificationEvent last = events.get(events.size() - 1);
            assertEquals("msg1099", last.getMessage());
        }
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 02:24:08 GMT 2026
    - 6.3K bytes
    - Click Count (0)
  9. cmd/metrics-v2.go

    	if metric.Description.Type == histogramMetric {
    		if metric.Histogram == nil {
    			return
    		}
    		for k, v := range metric.Histogram {
    			pmetric, err := prometheus.NewConstMetric(
    				prometheus.NewDesc(
    					prometheus.BuildFQName(string(metric.Description.Namespace),
    						string(metric.Description.Subsystem),
    						string(metric.Description.Name)),
    					metric.Description.Help,
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 133.6K bytes
    - Click Count (0)
  10. src/test/java/org/codelibs/fess/llm/AbstractLlmClientTest.java

            final LlmChatRequest request = new LlmChatRequest();
            client.testAddIntentHistory(request, history);
            // Default: maxMessages=6, maxChars=3000
            // From newest: A2(2), Q2(2+2=4), assistant(500+4=504), Short(5+504=509) => all fit
            assertEquals(4, request.getMessages().size());
        }
    
        @Test
        public void test_addIntentHistory_maxMessages() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 19 07:04:54 GMT 2026
    - 53K bytes
    - Click Count (0)
Back to Top