Skip to content

Commit

Permalink
Fixing API errors
Browse files Browse the repository at this point in the history
Signed-off-by: Ajay Lotan Thakur <[email protected]>
  • Loading branch information
thakurajayL committed Jan 13, 2025
1 parent 39fea77 commit 1ffc535
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drsm/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func (d *Drsm) AllocateInt32ID() (int32, error) {
}
for _, c := range d.localChunkTbl {
if len(c.FreeIds) > 0 {
return c.AllocateIntID(), nil
return c.AllocateIntID()
}
}
// None of the Chunk has freeIds. Allocate new Chunk
Expand Down
2 changes: 1 addition & 1 deletion drsm/chunk.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func (d *Drsm) GetNewChunk() (*chunk, error) {
return c, nil
}

func (c *chunk) AllocateIntID() int32 {
func (c *chunk) AllocateIntID() (int32, error) {
if len(c.FreeIds) == 0 {
logger.DrsmLog.Errorln("freeIds in chunk 0")
err := fmt.Errorf("freeIds in chunk 0")
Expand Down

0 comments on commit 1ffc535

Please sign in to comment.