Browse Source

kvcache: Set context for shift offsets

Jesse Gross 2 tháng trước cách đây
mục cha
commit
f52b2615ef
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      kvcache/causal.go

+ 1 - 1
kvcache/causal.go

@@ -545,7 +545,7 @@ func (c *Causal) shift(seq int, beginIndex, offset int32) error {
 		}
 	}
 
-	kShift, err := ctx.FromIntSlice(offsets, len(offsets))
+	kShift, err := ctx.Input().FromIntSlice(offsets, len(offsets))
 	if err != nil {
 		return err
 	}