Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for NewRemoteErrf (0.08 sec)

  1. internal/grid/benchmark_test.go

    				got := 0
    				for b := range in {
    					PutByteBuffer(b)
    					got++
    				}
    				if got != requests {
    					return NewRemoteErrf("wrong number of requests. want %d, got %d", requests, got)
    				}
    				return nil
    			},
    
    			Subroute:    "some-subroute",
    			OutCapacity: 1,
    			InCapacity:  1, // Only one message buffered.
    		}))
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  2. internal/grid/handlers.go

    // The error type is not preserved.
    func NewRemoteErr(err error) *RemoteErr {
    	if err == nil {
    		return nil
    	}
    	r := RemoteErr(err.Error())
    	return &r
    }
    
    // NewRemoteErrf creates a new remote error from a format string.
    func NewRemoteErrf(format string, a ...any) *RemoteErr {
    	r := RemoteErr(fmt.Sprintf(format, a...))
    	return &r
    }
    
    // NewNPErr is a helper to no payload and optional remote error.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 09 16:58:30 UTC 2024
    - 27.7K bytes
    - Viewed (0)
Back to top