app/services/sufia/id_service.rb in sufia-models-6.0.0.rc2 vs app/services/sufia/id_service.rb in sufia-models-6.0.0.rc3

- old
+ new

@@ -7,15 +7,14 @@ Sufia.config.noid_template end @minter = ::Noid::Minter.new(template: noid_template) @pid = $$ - #@namespace = Sufia.config.id_namespace @semaphore = Mutex.new def self.valid?(identifier) # remove the fedora namespace since it's not part of the noid noid = identifier#.split(":").last - return @minter.valid? noid + @minter.valid? noid end def self.mint @semaphore.synchronize do while true pid = self.next_id