Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for toStorageErr (0.12 sec)

  1. cmd/storage-rest-client.go

    		defer cancel()
    
    		opts.DiskID = *client.diskID.Load()
    
    		infop, err := storageDiskInfoRPC.Call(ctx, client.gridConn, &opts)
    		if err != nil {
    			return info, toStorageErr(err)
    		}
    		info = *infop
    		if info.Error != "" {
    			return info, toStorageErr(errors.New(info.Error))
    		}
    		return info, nil
    	} // In all other cases cache the value upto 1sec.
    
    	client.diskInfoCache.InitOnce(time.Second, cachevalue.Opts{},
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Oct 13 13:07:21 UTC 2024
    - 30.2K bytes
    - Viewed (0)
  2. cmd/test-utils_test.go

    	if toObjectErr(nil) != nil {
    		t.Errorf("Test expected to return nil, failed instead got a non-nil value %s", toObjectErr(nil))
    	}
    	if toStorageErr(nil) != nil {
    		t.Errorf("Test expected to return nil, failed instead got a non-nil value %s", toStorageErr(nil))
    	}
    	ctx := context.Background()
    	if toAPIError(ctx, nil) != noError {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 01 22:13:18 UTC 2024
    - 77K bytes
    - Viewed (0)
Back to top